: How to host 2 webapps on the same server I'm working on a VPS with Ubuntu and I configured a webapp called Pathfinder, it's a third party app for a game called EVE Online. Now I need to
I'm working on a VPS with Ubuntu and I configured a webapp called Pathfinder, it's a third party app for a game called EVE Online.
Now I need to add another app to the server but I don't want to mix anything
I can access pathfinder just fine. But I want to access the other app by using a url similar to this my.domain.com/otherapp , the other app is in the DocumentRoot.
#PATHFINDER VIRTUAL HOST
<VirtualHost *:80>
ServerName my.domain.com
ServerAdmin admin@bfc.com
DocumentRoot /var/www/my.domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =my.domain.com
RewriteRule ^ %{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Should I add another virtual host file for the new app?
More posts by @Annie201
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.