I have a website setup and want to be able to access the same site from two different ports. Does anybody know how I would do this?
For example, I want to be able to access exactly the same at http://example.com:5678
as I can at http://example.com:80
. I had tried fiddeling with virtualHosts in my httpd.conf from what I read on forums and the docs but couldn't figure it out - any ideas?
Also, how would I be able to make it work for http://domain1.com:80
shows the same as http://domain2.com:5678
? (for both where domain1 and domain2 are hosted on same server)
Does WHM/cPanel support this (other than domain parking)? If not, how would I change my apache to do this?
Thanks
Sam
Updated
I am not sure that you understood. I have a virtualHost set up and want that to be accessible from two different ports, showing exactly the same. Here is my virtual host currently.
<VirtualHost 184.107.24.1:80>
ServerName example.co.uk
ServerAlias www.example.co.uk
DocumentRoot /home/example/public_html
ServerAdmin [email protected]
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/example.co.uk combined
CustomLog /usr/local/apache/domlogs/example.co.uk-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User example # Needed for Cpanel::ApacheConf
UserDir enabled example
<IfModule mod_suphp.c>
suPHP_UserGroup example example
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup example example
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RUidGid example example
</IfModule>
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/example/example.co.uk/*.conf"
</VirtualHost>