I have two wordpress sites in different root folders on the same apache server. I need to use of different ports for each so that when I enter
<my public ipaddress>:8081
in a browser it will forward me to "/var/www/html/fwtest1.com" and pickup index.php from there.
So far I made changes in httpd.conf thus...
Listen 8081
Listen 8082 #Listen 80 removed
NameVirtualHost *:8081
NameVirtualHost *:8082
<VirtualHost *:8081>
DocumentRoot /var/www/html/fwtest1.com
</VirtualHost>
<VirtualHost *:8082>
DocumentRoot /var/www/html/fwtest2.com
</VirtualHost>
Then in my browser I type "ipaddress:8081" (or 8082 respectively and where ipaddress = my public IP). But I only get Http Error 500. I have also tried putting defines in my wordpress wp-config.php such as below, but to no avail.
define('WPSITEURL','<my public ipaddress>:8081/fwtest1.com'
define('WPHOME','<my public ipaddress>:8081:/fwtest1.com'
I'm not presently using DNS but plan to as soon as I get this working. Can anyone please help me understand what I'm doing wrong? ~B.Ed