Page 1 of 1

my webserver port number

PostPosted: Sat Oct 16, 2010 8:12 am
by redbaronn
Hello!

My webserver is running on my home NAS system. I have a real IP address, with a specific port open for the webserver. But in this site I didn't found any place where I can enter my asigned IP address WITH the port number. Where I can do that?

Thanks ahead!

Re: my webserver port number

PostPosted: Sat Apr 19, 2014 2:08 am
by wayneconnolly
DNS does not provide this as a feature, nor does it need to.

To do this you set up your websever (apache2 for instance) like the below example where you would change the default port 80 to whatever you want it to be.

Code: Select all
# Ensure that Apache listens on port 80
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example.com

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org

# Other directives here

</VirtualHost>


Reference : http://httpd.apache.org/docs/2.2/vhosts/examples.html