Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

webserver won't see default page

3 views
Skip to first unread message

Joe Befumo

unread,
Mar 26, 2007, 12:29:26 PM3/26/07
to
I'm running RedHat Enterprise Linux ES 4.0, and have run into a problem
getting Apache configured properly. In a nutshell, all of my virtual sites
display the Apache test screen. After some googling & think I got my
permissions right, but am still having problems.

Here's an excerpt from my httpd.conf file:

#

# Use name-based virtual hosting.

#

NameVirtualHost 63.163.109.231:80


#

# Virtual hosts

#

# Virtual host www.befumo.com

<VirtualHost 63.163.109.231:80>

DocumentRoot /var/www/html/befumo/

ServerAdmin webm...@befumo.com

ServerName www.befumo.com

ServerAlias befumo.com www.befumo.com

DirectoryIndex index.htm

</VirtualHost>

...

I Ran

chcon -R -h -t httpd_sys_content_t /var/www/html/

When I do an ls -aZ /var/www/html/befumo/

I get the following:

-rw-r--r-- root root root:object_r:httpd_sys_content_t hello.html

-rw-r--r-- root root root:object_r:httpd_sys_content_t index.htm

...

Which I assume is what it's supposed to be.

ls -Z in /var/www/html shows the following:

drwxr-xr-x apache apache root:object_r:httpd_sys_content_t befumo

-rw-r--r-- root root root:object_r:httpd_sys_content_t hello.html

drwxr-xr-x apache apache root:object_r:httpd_sys_content_t
pleasantmountpress

drwxrwxrwt apache apache root:object_r:httpd_sys_content_t rbefumo

drwxr-xr-x apache apache root:object_r:httpd_sys_content_t rootwerx

I created a simple test page (hello.html) in my /var/www/html/befumo/
directory

If I go to the browser and enter:

http://localhost/befumo/index.htm

I see the correct page.

If I go to http://www.befumo.com/hello.html (the test page I created)

I see the right page,

However,

if I go to http://www.befumo.com/index.htm

I get a 404 Page not found error.

If I go to http://www.befumo.com

I see the default Apache test page.

If I change my virtual host as follows:

DirectoryIndex hello.html

No change, which has me really perplexed.

Any suggestions would be greatly appreciated.

Thanks.

Joe


Joe Befumo

unread,
Mar 26, 2007, 12:41:34 PM3/26/07
to
Ah, one more hint.

The hello.html page I'm seeing is in the /var/www/html/ directory, not the
/var/www/html/befumo/ directory, where I thought it should be looking. So it
seems as if Apache is not looking into any of my virtual server directories,
if that makes any kind of sense.


Joe Befumo

unread,
Mar 26, 2007, 12:57:34 PM3/26/07
to
I put an "index.html" file in the

/var/www/html/ directory, and now that shows up as default for every one of
my websites. For some reason they're not looking in the individual
subdirectories identified in the virtual hosts sections.


0 new messages