Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache DirectoryIndex question


Guest

Recommended Posts

Running Apache 2

 

I have configured the httpd.conf and added default.php and index.php to the DirectoryIndex field. However when I type in the web address it keeps insisting on sending me to the apache test page.

 

Everything I have read says that it should work... Any ideas.. ?? TIA

Link to comment
Share on other sites

httpd.conf looks like this;

DirectoryIndex default.php index.php

 

It was been restarted... like 30 times now...

 

I have not renamed the test page. I put my osc files in a different folder like this /var/www/foldername/

 

and changed the httpd.conf DocumentRoot to reflect.

 

I can pullup the page when I specify the default.php like this

http://mydomain.com/default.php

but with this

http://mydomain.com/

I get the apache test page.

Link to comment
Share on other sites

I found the problem;

 

I needed to change to the virtual directory info as well;

# Virtual host Default Virtual Host

<VirtualHost *>







 ServerName _default_



 ServerSignature email



DirectoryIndex  default.php index.php





 ServerSignature email









 LogLevel  warn

 HostNameLookups off









</VirtualHost>

 

Now it works

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...