Forum Moderators: phranque

Message Too Old, No Replies

help using apache virtual hosts

         

mystakul

2:19 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



i am using apache virtual hosts. everything is working good. the problem is, my server is behind a firewall. i want to be able to use my subdomains without typing it the port number...for example
my domain is setup to point to my ip
blahblah.com -> 123.123.123.123
www.blahblah.com -> 123.123.123.123:8888

above is setup with www.mydomain.com

now my subdomains only work when i use the port number

subdomain.blahblah.com:8888 works good

so i registered another domain blahblah2.com
blahblah2.com --> blahblah.com:8888
intending to use subdomain.blahblah2.com.. but that doesnt work.

it just goes to www.blahblah.com

i hope this explains well enough ... any help would be appreciated

Robino

2:36 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't you just set the port in your config. file?

[httpd.apache.org...]

mystakul

2:58 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



apache is already setup correctly...i hope

the problem is using my domain. apache is setup to listen on port 8888, because port 80 is blocked by my isp.

so my domain, which is pointed to my ip. has to have the port with it (8888).

but if i setup my domain to "forward to url" with myip and the port. It disreguards whatever subdomain you use.

ex.) if blahblah.com is setup to be forwarded to myip - 123.123.123.123:8888

blahblah.com goes to my main server page.
subdomain.blahblah.com still goes to my main server page b/c it disreguards the subdomain.

but if blahblah.com is only pointed to my ip w/o port.
blahblah.com - 123.123.123.123

then blahblah.com wont go anywhere w/o a port because apache is listening to port 8888 not port 80

blahblah.com:8888 goes to my main server page which is correct

subdomain.blahblah.com:8888 goes to the correct place also.

but i dont want to have to enter the port to use my subdomains.

so the question is..how do i setup my domain/apache to get around this

BjarneDM

1:19 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



You can't. It's not an Apache problem.

The problem is that your ISP has blocked port 80. Therefore, it's a DNS problem. It has to be solved in the A or CNAME records, but I don't think that port numbers are part of that system. I might be wrong in that though.