This is a discussion on Need help in setting DocumentRoot within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi friends, I need help from you in making changes in the DocumentRoot. I have placed my application in a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi friends,
I need help from you in making changes in the DocumentRoot. I have placed my application in a directory "apps" under /var/www/html and when i try opening it as http://computername/ it shows me the directory structure instead of opening the index or default page whereas i want that whenever the user types on the LAN http://computername, the application should pop up.When i type http://computername/apps the application runs. The settings in the httpd.conf files are: ServerRoot "/home/usr/apache2/" DocumentRoot "/var/www/html" Alias /apps /var/www/html/apps <Directory "/home/usr/apache2/apps"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> DirectoryIndex Default.asps default.htm index.htm memberlogin.htm index.html Where do i need to make the changes so that when the user types httpd://computername the application page comes up. Thanks in advance Regards |
|
|||
|
Sukhminder wrote:
> Hi friends, > I need help from you in making changes in the DocumentRoot. I have placed > my application in a directory "apps" under /var/www/html and when i try > opening it as http://computername/ it shows me the directory structure > instead of opening the index or default page whereas i want that whenever > the user types on the LAN http://computername, the application should pop > up.When i type http://computername/apps the application runs. The settings > in the httpd.conf files are: > <snip> > Where do i need to make the changes so that when the user types > httpd://computername the application page comes up. Thanks in advance > Regards DocumentRoot "/var/www/html/apps" Or you could use a 301 Redirect from / to /apps. -- Matt -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |
| Thread Tools | |
| Display Modes | |
|
|