Bitnami多个站点重定向到一个站点

时间:2016-06-01 22:29:33

标签: amazon-web-services dns virtualhost bitnami

我是bitnami / apache / aws的新手,并且最近被分配了解我们为什么有3个网站重定向到一个特定网站。我花了不少时间在这上面,我想我已经缩小到app.conf文件。即使我尝试访问/ wp-admin或/ administrator urls,它也会将我带到另一个站点。这是两个app.conf文件。如果有什么不合适的地方让我知道。提前谢谢。

主站点所有其他站点都重定向到

<VirtualHost *:80>
DocumentRoot /opt/bitnami/apps/www.blueleafdef.com/htdocs
ServerName blueleafdef.com
ServerAlias www.blueleafdef.com
ServerAlias blueleafdefr.uat.ignitedev.com
ErrorLog /opt/bitnami/apps/www.blueleafdef.com/log/error.log
CustomLog /opt/bitnami/apps/www.blueleafdef.com/log/access.log common

<Directory "/opt/bitnami/apps/www.blueleafdef.com/htdocs">
Options +Indexes +FollowSymLinks -MultiViews 
AllowOverride All
Order allow,deny
Allow from all
</Directory> </VirtualHost>

其他网站的一个例子

 <VirtualHost *>
DocumentRoot /opt/bitnami/apps/www.fuelsnews.com/htdocs
ServerName www.fuelsnews.com:80
ServerAlias www.fuelsnews.com
ErrorLog /opt/bitnami/apps/www.fuelsnews.com/log/error.log
CustomLog /opt/bitnami/apps/www.fuelsnews.com/log/access.log common

<Directory "/opt/bitnami/apps/www.fuelsnews.com/htdocs">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> </VirtualHost>


<VirtualHost *>
DocumentRoot /opt/bitnami/apps/www.fuelsnews.com/htdocs
ServerName fuelsnews.com:80
ServerAlias fuelsnews.com
ErrorLog /opt/bitnami/apps/www.fuelsnews.com/log/error.log
CustomLog /opt/bitnami/apps/www.fuelsnews.com/log/access.log common

<Directory "/opt/bitnami/apps/www.fuelsnews.com/htdocs">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> </VirtualHost>


<VirtualHost *>
DocumentRoot /opt/bitnami/apps/www.fuelsnews.com/htdocs
ServerName fuelsnewsr.uat.ignitedev.com:80
ServerAlias fuelsnewsr.uat.ignitedev.com
ErrorLog /opt/bitnami/apps/www.fuelsnews.com/log/error.log
CustomLog /opt/bitnami/apps/www.fuelsnews.com/log/access.log common

<Directory "/opt/bitnami/apps/www.fuelsnews.com/htdocs">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> </VirtualHost>

1 个答案:

答案 0 :(得分:1)

使用以下内容并重新启动它将起作用的apache。

    <VirtualHost *>
DocumentRoot /opt/bitnami/apps/www.fuelsnews.com/htdocs
ServerName www.fuelsnews.com
ServerAlias fuelsnews.com
ErrorLog /opt/bitnami/apps/www.fuelsnews.com/log/error.log
CustomLog /opt/bitnami/apps/www.fuelsnews.com/log/access.log common

<Directory "/opt/bitnami/apps/www.fuelsnews.com/htdocs">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> </VirtualHost>


<VirtualHost *>
DocumentRoot /opt/bitnami/apps/www.fuelsnews.com/htdocs
ServerName fuelsnewsr.uat.ignitedev.com
ServerAlias fuelsnewsr.uat.ignitedev.com
ErrorLog /opt/bitnami/apps/www.fuelsnews.com/log/error.log
CustomLog /opt/bitnami/apps/www.fuelsnews.com/log/access.log common

<Directory "/opt/bitnami/apps/www.fuelsnews.com/htdocs">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory> </VirtualHost>