Issues with Apache, Domain on 80, subdomain on 8080
Well this works all fine.
If you go to mydomain.com:80 it is fine, and mydomain.com:8080 but what the subdomain on port 8080 is suppose to be paradiso.mydomain.com:8080. My current setup is an Ubuntu 8.04 Apache 2 box with the conf being /sites-enabled/main Code:
<VirtualHost *:80> subdomain Code:
<VirtualHost *:6969> Any comments or help is always much appreciated -nonexist |
Quote:
- Arch |
Sorry. Complete issue with my config. I was messing around with it as I was posting this to see if I could find a fix, and forgot to fix it.
But the two ports are 80 and 6969. I am trying to get the subdomain on the port 6969, so it would be like "paradiso.mydomain.com:6969" but it gives errors. The file I have in place for the subdomain works if you go to mydomain.com:6969. Sorry for the confusing post :? Code:
<VirtualHost *:80> subdomain Code:
<VirtualHost *:6969> Any comments or help is always much appreciated -nonexist |
Okay, you may just need to add Listen *:6969, or whatever port you want, to your httpd.conf (or ports.conf under Debian/Ubuntu).
- Arch |
Why is it that you are trying "paradiso.mydomain.com:6969" when you have in your conf "subdomain.mydomain.com"?
Also make sure that your dns configs for the two are set properly. |
Ok. Lets try this again.
If I have the setup for the subdomain (cleaned) as Code:
<VirtualHost *:6969> |
from archangel_617b
Quote:
whats your output for # netstat -antp |
Alright. Here is root netstat.
Code:
nexea@toast:~$ sudo netstat -antp |
Is paradiso.mydomain.com defined in your DNS server?
Apache will only send requests to virtualhosts if the request matches the v-host definition. If there is no match, it uses the first virtualhost container. Before making the changes in your DNS Server, add the name and IP to your hosts file and test it. Don't forget to remove the hosts entry when you are done. Bob |
Quote:
|
Alright.
Here is /etc/hosts Code:
127.0.0.1 localhost Im not really sure what I would change. I have most of the configuration through GoDaddy, so would I add CNAME like Host: paradiso Points To: mydomain.com TTL: 1 hour Or would I have it point to @ with the port like Host: paradiso Points To: @:6969 TTL: 1 hour -nonexist |
All times are GMT -5. The time now is 06:38 PM. |