Vasanth Kumar ravi wrote:
So i have changed the Listen port as 9080 and defined Virtual hosts for 9080
and 443.
I tried to access the application using the url's above, but it failed.
Now the question is.
How can I access the application using the same url without mentioning the
port number on the url.
I m not using any firewall here, so I cannot do a port fwd of 80 to 9080.
Is there any configuration which can be done at the Apache, so that I can
run it as non root user and access the url without ports mentioned in it.
Hi.
Apart from the correct answers which other people already gave you,
going back for a minute to your basic question :
You cannot do the above without having something in-between, for the
following reason :
When you type a URL like "http://www.myserver.com" in a browser, it is
*the browser* which adds the ":80" automatically (*), because that is
the default port for the HTTP protocol.
Similarly, if you type a URL like "https://www.myserver.com", the
browser will automatically add ":443", because that is the default port
for the HTTPS protocol.
So now, the browser tries to connect to the IP address of the host
"www.myserver.com", on port 80. If on that host, nothing is listening on
that port, the browser is not able to connect.
Since you cannot "tell" all the browsers that access your site, that
they should use another default port for HTTP and HTTPS, there is no way
to change that part.
But note :
If your application is entirely located on that one server, the fact of
having to add ":9080" to the hostname concerns only the *first* URL link
to your site. Once your clients have connected once to
"http://www.myserver.com:9080" and received the Home page, then as long
as all the links in your application pages do not contain the
"http://www.myserver.com:9080" part anymore, the browser will
automatically continue to access this same host:port.
(e.g. the links in your Home page are like
<a href="/submenu1.html">Accounting</a>
and not like
<a href="http://www.myserver.com:9080/submenu1.html">Accounting</a>
)
This may, or may not, be acceptable to you. You will have to be a bit
careful in designing your site, but it can work.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]