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

re: Port number

Status
Not open for further replies.

ses123

IS-IT--Management
Feb 12, 2003
29
0
0
US
I am running apache on a different port other than 80. Say 1234. How do i eliminate the need to type port number at the end of the url everytime I view the site? Like instead of
 
You should be able to accomplish this using a proxy and mod_rewrite.



# .cgi rewrite example

<VirtualHost 192.168.0.100:80>
ServerAdmin admin@domain.com
DocumentRoot / ServerName domain.com
CustomLog / combined

RewriteLogLevel 0
RewriteEngine on
RewriteLog "/usr/local/apache-proxy/logs/rewrite.log"
RewriteRule ^/(.*)\.cgi(.*)$ [P]
ProxyRequests Off
</VirtualHost>

M. Brooks
X Concepts LLC
 
You could use a service from some registrar or DNS provider, such as DynDNS.org. They can redirect your visitors to your actual site, complete with a port number.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top