Need help in setting DocumentRoot

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2004
Sukhminder
 
Posts: n/a
Default Need help in setting DocumentRoot

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
  #2 (permalink)  
Old 08-27-2004
Matt
 
Posts: n/a
Default Re: Need help in setting DocumentRoot

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0