Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   /etc/httpd/httpd.conf "dosn't relate to your example - please help!"
Date:   2001-12-20 09:50:28
From:   bob30
Fantastic article - at last a true platform to develop web sites in the mac!


The CGI access article chats about the "...rather large, but also well documented" config file... well mine isn't!! Here is a copy below:


#
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


Include /private/etc/httpd/users



So... the items "LoadModule cgi_module libexec/httpd/mod_cgi.so" and "AddModule mod_cgi.c" are not to be found - quote 'You'll see a number of these lines within the Apache config file.' HELP! I don't see them!


This is my first time here so please excuse my ignorance.


regards bob

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Morbus Iff photo /etc/httpd/httpd.conf "dosn't relate to your example - please help!"
    2001-12-20 10:12:27  Morbus Iff | O'Reilly Author [View]

    Hey Bob, how ya doing?

    That's the *only* thing you see in your /etc/httpd/httpd.conf file? That's really odd. I've never run across that anywhere.

    Could you do this for me? Open up a Terminal, type "cd /etc/httpd" and hit enter. Then type "ls -l" and tell me (or paste) what you see? Thanks.
    • /etc/httpd/httpd.conf "dosn't relate to your example - please help!"
      2001-12-20 10:24:42  bob30 [View]

      Here's the output... many thanks...


      httpd.conf
      httpd.conf.bak
      httpd.conf.default
      magic
      magic.default
      mime.types
      mime.types.default
      users


      I hope this helps?

      bob
      • Morbus Iff photo /etc/httpd/httpd.conf "dosn't relate to your example - please help!"
        2001-12-20 14:05:00  Morbus Iff | O'Reilly Author [View]

        Ah. I'm going out on a limb here, but you should see that the httpd.conf.default file is much larger in size than your current httpd.conf. If this is the case, take a look around for some of the lines that I describe in my article.

        If you see then, then you may want to replace your current httpd.conf file with the default one. Only you can make that decision, of course.

        To do so, make a backup of your current httpd.conf file:

        cd /etc/httpd/
        cp httpd.conf httpd.2001-12-20

        And then replace it with the default:

        cp httpd.conf.default httpd.conf

        From there, try restarting the Apache webserver, and see what happens.
        • /etc/httpd/httpd.conf "dosn't relate to your example - please help!"
          2001-12-21 01:34:11  bob30 [View]

          Thanks for the suggestion... the file, sadly, is rather similar to the original config file. Here it is...

          #
          #<VirtualHost *>
          # ServerAdmin webmaster@dummy-host.example.com
          # DocumentRoot /www/docs/dummy-host.example.com
          # ServerName dummy-host.example.com
          # ErrorLog logs/dummy-host.example.com-error_log
          # CustomLog logs/dummy-host.example.com-access_log common
          #</VirtualHost>

          Include /private/etc/httpd/users


          What do you think? I'm off to check a friends machine who is running OS X to see what the file should like like.

          Many thanks,

          bob