Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displays Folder Content 1

Status
Not open for further replies.

wachuna

Technical User
Mar 10, 2004
14
0
0
US
Solaris 10, Apache2, php5, MySQL5

I'm having problem setting directory alias. Here's what I have in httpd.conf

Alias /zags/ "/usr/local/apache2/htdocs/zags/"
<Directory "/usr/local/apache2/htdocs/zags">
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

When I go to the browser and put in I would get listing of contents in this directory. If I type in it'd display php page correctly, phpinfo.php also works.

Any ideas on how I can modify the httpd.conf so all I have to type is
Thanks
 
Modify your httpd.conf to look like the example below.
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.htm index.html [b]index.php[/b]
</IfModule>

M. Brooks
 
That did it. Thanks a lot mbrooks.
Happy New Year!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top