apache port forward
You have to use http://localhost:port
to visit http://localhost
, to help you omit the port
part, now let us learn to configure apache2
.
First to install apache2.
sudo apt-get install apache2
Then to add some modules that are used.
a2enmod proxy
a2enmod proxy_http
So now apache2 could proxy HTTP request.
Enter $APACHE_HOME/sites-available
folder, create a file with content below:
1 |
|
Well seems we have done a lot, now you need to symbolic link this file to $APACHE_HOME/sites-enabled
cd $APACHE_HOME/sites-enabled
sudo ln -s ../sites-availables .
Now just reload apache by:
sudo service apache2 reload
To see if it works!
Cong if you got it done, along integrated with tomcat folder mapping
, now we could use http://domain.name
to visit our application which originally needs http://localhost:port/appname/
apache port forward
https://rug.al/2014/2014-08-24-apache-port-forward/