I have a website on localhost. On the other hand, I have a program running on localhost:8067.
I would like to manage the next:
- Type
localhost
on the URL and go to the website. - Type
my.domain.com
on the URL and go to the program.
I am using Apache2 to achieve this, but I cannot.
I created a site in /etc/apache2/sites-available and enabled it:
<VirtualHost *:80>
ServerName my.domain.com
# ServerAlias my.domain.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8067/
ProxyPassReverse / http://localhost:8067/
</VirtualHost>
This is not working properly. Because with this site enabled, if I type localhost
, I am redirected to http://localhost:8067/
, which I do not want, because if I type localhost
, I have to see the website.
Anyone can help me? Thank you in advance.