Domain redirect to ip: port
Domain redirect to ip: port
Hi,
I have a question:
I have a domain test123.com and i want it to redirect to another port on the same server (different script giving output to server:3001) , anyone any ideas??
thanks in advance!
I have a question:
I have a domain test123.com and i want it to redirect to another port on the same server (different script giving output to server:3001) , anyone any ideas??
thanks in advance!
Re: Domain redirect to ip: port
Try using mod_proxy -
Code: Select all
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dev.mydomain.com
ProxyPreserveHost On
# setup the proxy
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://localhost:8888/
ProxyPassReverse / http://localhost:8888/
</VirtualHost>