vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/opt/lampp/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error_log"
    CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/opt/lampp/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error_log"
    CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/opt/lampp/htdocs/Demos/hush-framework/hush-app/web/backend"
    ServerName hush-app-backend
    <Directory />
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>
 
<VirtualHost *:80>
    DocumentRoot "/opt/lampp/htdocs/Demos/hush-framework/hush-app/web/frontend"
    ServerName hush-app-frontend
    <Directory />
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

Listen 8001
<VirtualHost *:8001>
    DocumentRoot "/opt/lampp/htdocs/Demos/info-demos/server/www/server"
    ServerName Demos-app-api
    <Directory />
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

Listen 8002
<VirtualHost *:8002>
    DocumentRoot "/opt/lampp/htdocs/Demos/info-demos/server/www/website"
    ServerName Demos-app-web
    <Directory />
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

 

posted @ 2014-05-13 17:56  huidaoli  阅读(458)  评论(0编辑  收藏  举报