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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache redirect newbie question

Status
Not open for further replies.
If this is NOT a registered domain, you will only be able to access it from the local machine or network. In the first example you gave in523 would be a sub-domain of xyz.com. You will need to use the same url as ServerName. I am going to guess that your isp is blocking port 80 since you are using 8200. Apache will work with this but anyone who wants to access your server will need to add the port to the url. There are dns pointer services that will give you a sub-domain and point it to your server on whatever port you use even if you have a dynamic ip. To answer your question, You would edit the DocumentRoot directive. This is the directory that your pages will be served from when someone types in your url.
 
Hi there,
The appln is goinf to be accessed within the network only.
And yes since port 80 is being used by another server, we have used port 8200.
Am still not clear about how can i by changing the DocumentRoot directive achieve this:
when i type it should open

Thanks for your help
 
If apache will only be hosting one site, and that site's name is in523, then set ServerName in523. You can change the default DocumentRoot to where you want the web pages served from. The DocumentRoot can be any directory on your hard drive. Let's say you have a windows system. You can create a directory called c:/in523/htdocs. This is where your html pages will go. When someone types " in their browser, apache will look in the defined DocumentRoot and serve index.html if it exists. If not it will look for any file name(s) you have listed after the DirectoryIndex directive. If none are found, a directory listing will be displayed. You will need to create a directory container for DocumentRoot to tell apache who can do what in that directory. Here is an example:

<Directory &quot;c:/in523/htdocs&quot;>

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top