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

Configuring HTTP CONF file

Status
Not open for further replies.

kishorkar

Programmer
Aug 12, 2003
26
IN
Hi all,

I want to access a site from an intranet location. This site has a URL:portnumber/virtual directory/index.htm. I need people to type training in the web browser which inturn should display the first page (index.htm) of the site. Any ideas? Any changes to be done in the http conf file?
Please reply ASAP...

Thanks,
Kishore
 
That's how I read it. That'll work, except for the odd port number. In order to just type "training" and get what you want:

1- The PC must resolve "training" (without the full domain) to an IP address, and
2- The "training" server must listen on port 80.

In this case, I'd probably set up an index.html for "training" which contains

<html>
<head>
<meta http-equiv="refresh" content="0;URL=http://realserver:port/virtual directory/index.htm">
</head>
</html>

 
Thanks for the reply guys !

But...
The machine has three servers configured in it. The default port 80 has the domino server configured and 81 has the apache web server configured and port 90 has the IIS server configured. Is it possible to make the port 81 to listen when it is requested from the browser. Any thoughts/ideas ?

Thanks,
Kishore
 
either add the port in the url or get a redirect pointing to that port, browsers always listen on 80 as far as i know.
 
That's right- It's the browser. Browsers assume ports 80 and 443 unless they're told otherwise.
 
If you are not doing a redirect or running your own dns server, you will have to include it in the url as stated a couple times already. For example:
 
Hi

I find this forum is really incredible. I have some problems with my Apache server version 2.x running on Unix. I want to all the URL path to a specific page say maintenance.html. I did this using ProxyPass / <maintenance.html> but it did not block other pages except the home page.

Also the other problem I have is to redirect some domin to specific page(basically virtual host).

Any solutions is highly appreciated.
 
You could run both virtual servers simultaneously on port 80 if you use NameBased Virtual hosts. Then, if you set the servername directive to training, apache knows which vhost to forward your requests to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top