If you plan to publish 2 or more domain urls from the same apache server, this configuration will help you but the requirement is the document root path should be different for all domains.
<VirtualHost *:80>
ServerName my-server1.com
DocumentRoot /var/www/html/my-app1
<Directory /var/www/html/my-app1>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName my-server2.com
DocumentRoot /var/www/html/my-app2
<Directory /var/www/html/my-app2>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName my-server3.com
DocumentRoot /var/www/html/my-app3
<Directory /var/www/html/my-app3>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Subscribe to:
Post Comments (Atom)
Wordpress - Local installation in Vmware
If you're interested in exploring website design with WordPress, this guide will help you set up a WordPress instance on your local mach...
-
[Tested On] CentOS Linux release 7.4.1708 (Core) # wget https://ftp.postgresql.org/pub/source/v9.6.6/postgresql-9.6.6.tar.gz # tar xvzf post...
-
To print single column from a text file #awk -F: '{print $1}' /etc/passwd To print multiple columns from a text file # awk -F: '...
-
# enq -sAW # ps -eaf | grep {queue name} # kill -9 {queue name} # cd /var/spool/lpd/qdir # remove all queues # cd /var/spool/lpd/stat # remo...
No comments:
Post a Comment