[英]Running two copies of Apache web server on same server for two different applications
[英]start two applications on the same apache http server
我正在處理兩個應用程序,我把它們放在同一台Apache服務器上。 我為每個應用程序在conf和bin上創建了一個文件:apache / conf / httpd_app1.conf:application1 apache / conf / httpd_app2.conf:application2
apache / bin / apachectl_app1 apache / bin / apachectl_app2
我配置了每個虛擬主機,
但當我指向第一個應用程序時,它會將我重新引導到另一個應用程序,有時反過來。 我不明白我錯過了什么以及我必須做些什么。
將此代碼添加到httpd.conf
<VirtualHost 172.20.30.40:80>
ServerAdmin webmaster@www1.example.com
DocumentRoot "/www/vhosts/www1"
ServerName www1.example.com
ErrorLog "/www/logs/www1/error_log"
CustomLog "/www/logs/www1/access_log" combined
</VirtualHost>
<VirtualHost 172.20.30.50:80>
ServerAdmin webmaster@www2.example.org
DocumentRoot "/www/vhosts/www2"
ServerName www2.example.org
ErrorLog "/www/logs/www2/error_log"
CustomLog "/www/logs/www2/access_log" combined
</VirtualHost>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.