For each development sites I want to have a unique port number. For instance, domain.com:1234
This is what I have in my httpd.conf file. After restart the page domain.com:1234 is not showing in the browser. Is there anything else that I need to do besides what I have already done to make this work?
Listen *:1234
<VirtualHost *:1234>
DocumentRoot /var/www/dev_sites/test
ServerName domain.com
</VirtualHost>
It looks like if I go to my local hostname (kk.local:1234) it shows. Is there some sort of dns that I need to do? I really don't want to go into godaddy everytime I add a development site. Is there a way around that?
netstat -tulnp
? Do you see anything listening on port 1234 ?tcp 0 0 :::1234 :::* LISTEN -
domain.com
resolve to the correct address on the client? Does the browser show an error message? Does the website access show in your Apache log files?telnet domain.com 1234
. If you getconnection refused
or a timeout, something is blocking access to that port. Usetcptraceroute
(on Windowstracetcp
to find out where. Iftelnet
can establish a connection, you should see something in your Apache logs.