apache port number

Posted by user983223 on Server Fault See other posts from Server Fault or by user983223
Published on 2012-10-27T13:17:17Z Indexed on 2012/10/27 17:03 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

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:1234
</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?

© Server Fault or respective owner

Related posts about apache2

Related posts about webserver