Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2001
    Posts
    193

    Why Can't I Get To Any Pages?

    I have a dedicated server running Red Hat 7.2 with Apache 1.3.24. For some reason I can't get to any of the pages I have in my directory and I was wondering if someone could tell me if one of my settings are wrong under Webmin , Apache Webserver. Here's what I have:

    Default Server

    Defines the default settings for all other virtual servers, and processes any unhandled requests.
    Address Any
    Port Any
    Server Name Automatic
    Document Root "/usr/local/apache/htdocs"

    Virtual Server

    Handles the name-based server domain.com on address IP Address

    Address IP Address
    Port 80
    Server Name domain.com
    Document Root /home/website/htdocs


    Here's whats coming up in my error log:

    [Thu Jun 13 11:22:46 2002] [error] [client IP ADDRESS] File does not exist: /usr/local/apache/htdocs/test.html

    Shouldn't it be looking in /home/website/htdocs, instead of /usr/local/apache/htdocs? If so, how do I change it?

  2. #2
    Join Date
    Dec 2000
    Location
    Leesburg, VA
    Posts
    3,205
    You also need to tell Apache that the IP Address will be used as a virtual server. You will need to add a line like this:

    NameVirtualHost IP.Address.of.virtual.host

  3. #3
    Join Date
    Oct 2001
    Posts
    193
    I have this in /etc/httpd/conf/httpd.conf:

    <VirtualHost MYSERVERSIPADDRESS>
    DocumentRoot /home/website/htdocs
    HostNameLookups off
    ServerAdmin [email protected]
    ServerName domain.com
    #CustomLog /home/website/logs/access_log
    #ErrorLog /home/website/logs/error_log
    #ScriptAlias /cgi-bin /home/website/public_html/cgi-bin
    </VirtualHost>

    I had to comment out the customlog, errorlog, and scriptalias because it was coming up as an error when I ran the apachectl config test. Any ideas why I was getting those errors?

    The NameVirtualHost was set to:

    #NameVirtualHost *

    and I tried this:

    NameVirtualHost MYSERVERSIPADDRESS

    but it still didn't work. It is still showing up as, [Thu Jun 13 12:45:51 2002] [error] [client IPADDRESS] File does not exist: /usr/local/apache/htdocs/test.htm in my error log.

    Any ideas?


    JTM

  4. #4
    Join Date
    Jul 2001
    Posts
    889
    did you restart apache after you edited the conf file?

  5. #5
    Join Date
    Oct 2001
    Posts
    193
    Yes.

    When I compiled Apache I just typed in the default ./configure then make then make install. Did I miss something?


    JTM

  6. #6
    Join Date
    Dec 2000
    Location
    Leesburg, VA
    Posts
    3,205
    he means after you make changes to the httpd.conf file Apache has to be restarted to allow those changes to take affect:

    /etc/rc.d/init.d/httpd restart

  7. #7
    Join Date
    Feb 2002
    Posts
    956
    Tip:Recompile with ./configure --enable-module=so --enable-module=rewrite
    If you don't you can use PHP and cool stuff like that
    Also it seems lessa bugy that way

  8. #8
    Join Date
    Oct 2001
    Posts
    193
    Thanks for all of your replies. I ended up recompiling Apache with./configure --enable-module=most --enable-shared=max and just manually edited the httpd.conf file instead of using Webmin. I think Webmin was screwing a lot of the settings up to.

    Everything is back up and running now!


    JTM

  9. #9
    Join Date
    Feb 2002
    Posts
    956
    Webmin hasn't been updated to any version of Apache newer than 1.3.3

  10. #10
    Join Date
    Oct 2001
    Posts
    193
    Really? Do you know of another control panel that is free? I don't really need something like Plesk because I only have 3 sites on the server and I don't want to pay the license fees.

    Or do you know of something I can easily create/manage POP3 accounts with?


    JTM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •