httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Palmer <rob...@greetin.gs>
Subject Re: [users@httpd] howto configure apache to serve requests without explicitly defining a port number in the URL
Date Wed, 11 Jan 2006 23:06:44 GMT
Harish.Chakravarthy@sjsu.edu wrote:

>Hi Everyone,
>
>I would appreciate any information on configuring apache to run on a non 
>standard port, however serving requests without explicitly defining the 
>port number in the URL. 
>Example: 
>1. If I run apache on port 7894 hosting mydomain.org 
>2. I should be able visit http://mydomain.org to see my site 
>   (instead of http://mydomain.org:7894) 
>Does this also require any coordination with firewall rules,iptables, 
>etc ?. Any information is appreciated. 
>Running Apache 2.0.X on Solaris 8
>Cheers
>-Harish 
>
>---------------------------------------------------------------------
>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: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>
I'm not sure you can do what you want.

http://mydomain.org:7894

is an instruction to the browser to connect on port 7894 to your system. 

You can redirect from port 80 to 7894 using xinet. The following would do it but you'd
still have your machine listening for http on port 80 so it's pointless. You'd define 
rpssh in /etc/services.


service rpssh
{
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success  += HOST DURATION
        log_on_failure  += HOST
        disable                 = no
        redirect                = 127.0.0.1 7894
}



---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message