Namran Hussin Linux httpd:How to add another port for webhosting

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

1 thought on “httpd:How to add another port for webhosting”

Comments are closed.

Related Post

Installing WICD for wireless connection User interface in CentOS 5.6Installing WICD for wireless connection User interface in CentOS 5.6

First download the package from website : wget http://downloads.wicd.net/pkgs/stable/1.6.x/1.6.2/CentOS_5/wicd-1.6.2-2.1.x86_64.rpm rpm -ivh wicd-1.6.2-2.1.x86_64.rpm then install the dependencies for this .. as it require python-urwid .. assume you have install rpmforge repo.