X
    Categories: Linux

httpd:How to add another port for webhosting

Let’s say somehow client want the webservices to be hosted at the different port of default *:80.
Just add the following :
into /etc/httpd/conf/httpd.conf

#Listen 12.34.56.78:80
Listen 80
Listen 8080

and… if you have virtual host setting ..

just ammend as follows :


        DocumentRoot "/opt/ZZZ/station/docroot"
        DirectoryIndex index.php index.html
        SetEnv BINLOGGERBASE /opt/ZZZ
        SetEnv ZZZBASE /opt/ZZZ
        SetEnv VERSION 1.064.cos5


        DocumentRoot "/opt/ZZZ/station/docroot"
        DirectoryIndex index.php index.html
        SetEnv BINLOGGERBASE /opt/ZZZ
        SetEnv ZZZBASE /opt/ZZZ
        SetEnv VERSION 1.064.cos5

Namran Hussin: a soft spoken guy... with exceptional interest in computers and technology. I love to learn new thing and also love to break thing for the sake of learning.. but I do abide to the self-imposed limitation or certain thing such as social thing in life, thing can be done and thing that must be avoided at whatever cost such as drug,illegal tracking, smoke,illicit activity..etc.muahahaha let's share what we had in this short term of the life.! make it worth of the living.~

View Comments (2)

Related Post
Leave a Comment