Web Hosting Talk







View Full Version : Why Can't I Get To Any Pages?


JTM
06-13-2002, 11:48 AM
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?

allan
06-13-2002, 12:26 PM
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

JTM
06-13-2002, 12:59 PM
I have this in /etc/httpd/conf/httpd.conf:

<VirtualHost MYSERVERSIPADDRESS>
DocumentRoot /home/website/htdocs
HostNameLookups off
ServerAdmin admin@domain.com
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

chuckt101
06-13-2002, 01:20 PM
did you restart apache after you edited the conf file? :cartman:

JTM
06-13-2002, 01:22 PM
Yes.

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


JTM

allan
06-13-2002, 01:30 PM
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

roly
06-13-2002, 08:06 PM
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

JTM
06-13-2002, 08:16 PM
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

roly
06-13-2002, 08:21 PM
Webmin hasn't been updated to any version of Apache newer than 1.3.3

JTM
06-13-2002, 08:25 PM
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