Mobile app version of vmapp.org
Login or Join
Annie201

: 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

@Annie201

Posted in: #Apache #Apache2 #Virtualhost

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?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Annie201

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme