logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Site won't load unless I specify Port
Author
zeetwoeight



Joined: 02 Sep 2009
Posts: 3

PostPosted: Wed 02 Sep '09 2:02    Post subject: Site won't load unless I specify Port Reply with quote

Hi all,

I have just installed Apache and I have changed changed the port as follows:
Listen 9999

However, the default page won't load unless I put in http://mytestsite.domain:9999

What else do I need to add to the configuration so that the user won't have to put the port number in the URL.

Thx
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 02 Sep '09 8:12    Post subject: Reply with quote

What you want is here:
http://www.dslwebserver.com/main/sbs-webserver-on-a-different-port-number-host-headers.html

It explains the steps needed to get a domain name redirected to another port. This is for IIS (long ago) but the redirecting part is still 100% on target
Back to top
zeetwoeight



Joined: 02 Sep 2009
Posts: 3

PostPosted: Wed 02 Sep '09 13:55    Post subject: Reply with quote

Thx gl.

Unfortunately, that article doesn't refer to the redirection to another port for Apache. I've done this numerous times in IIS and I figured I'd be able to use the <VirtualHost> directive in Apache but that's not working.

So I guess my question now is: how do I do port redirection in Apache?

Thx
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 02 Sep '09 20:52    Post subject: Reply with quote

ok .. then, I do not really care why you may want to do this but I'm going to have to ask. Are you wanting this because your ISP is blocking port 80?

If not see this, just James' code section he posts first
http://www.apachelounge.com/viewtopic.php?t=3026
an example of redirecting a http (port 80) request to https (port 443)

and have a look at mod_rewrite
http://httpd.apache.org/docs/2.2/rewrite/
Back to top
zeetwoeight



Joined: 02 Sep 2009
Posts: 3

PostPosted: Thu 03 Sep '09 1:24    Post subject: Reply with quote

The reason is that this Apache server is the underlying element for our Urchin server (from Google). By default, they select port 9999 in their installation and from what I have been told, it's recommended to leave the port alone.

I'll take a look at the other info you've posted but for now, were are just going to cheat - custom icon on the users desktop that links to the site + port #. After all, this redirecting and rewriting seems to be a lot of work just so some users won't have to type 9999 Very Happy

Thx glsmith.

Cheers
Back to top


Reply to topic   Topic: Site won't load unless I specify Port View previous topic :: View next topic
Post new topic   Forum Index -> Apache