Source

woocode / sa-auto / conf / apache22 / extra / longmen.conf

<VirtualHost *:8088>
        ServerAdmin     admin@game2.cn
        DocumentRoot    "/apps/lm/htdocs/web/www"
        ServerName      game.game2.cn
        ServerAlias     game.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/cgi-bin/"
        <Directory "/apps/lm/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/www">
                AllowOverride All
                Options +Includes
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [L]
        RewriteRule ^([^/]*)/$ index.php?controller=Controller_Game_$1 [QSA,L]
        RewriteRule ^([^/]*)/([^/]*)/$ index.php?controller=Controller_Game_$1&action=$2 [QSA,L]
        RewriteRule ^([^/]*)/([^/]*)/(.*)$ index.php?controller=Controller_Game_$1&action=$2&params=$3 [QSA,L]
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@game2.cn
        DocumentRoot    "/apps/lm/htdocs/web/site_mgr"
        ServerName      mgr.game.game2.cn
        ServerAlias     mgr.game.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/cgi-bin/"
        <Directory "/apps/lm/cgi-bin/">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/hzh"
        ServerName      lm.game2.cn
        ServerAlias     lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/cgi-bin/"
        <Directory "/apps/lm/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/hzh">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/s1"
        ServerName      s1.lm.game2.cn
        ServerAlias     s1.lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/s1/cgi-bin/"
        <Directory "/apps/lm/s1/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/s1">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/s2"
        ServerName      s2.lm.game2.cn
        ServerAlias     s2.lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/s2/cgi-bin/"
        <Directory "/apps/lm/s2/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/s2">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/mgr"
        ServerName      mgr.lm.game2.cn
        ServerAlias     mgr.lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/mgr-cgi/"
        <Directory "/apps/hzh">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/pay"
        ServerName      pay.lm.game2.cn
        ServerAlias     pay.lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/cgi-bin/"
        <Directory "/apps/lm/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/pay">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/ds"
        ServerName      ds.lm.game2.cn
        ServerAlias     ds.lm.game2.cn
        <Directory "/apps/lm/htdocs/web/ds">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/bbs"
        ServerName      bbs.lm.game2.cn
        ServerAlias     bbs.lm.game2.cn
        ScriptAlias /cgi-bin/ "/apps/lm/cgi-bin/"
        <Directory "/apps/lm/cgi-bin">
                AllowOverride All
                Options +Includes
        </Directory>
        <Directory "/apps/lm/htdocs/web/bbs">
                AllowOverride All
                Options +Includes
        </Directory>
</VirtualHost>

<VirtualHost *:8088>
        ServerAdmin     admin@funuu.com
        DocumentRoot    "/apps/lm/htdocs/web/gm"
#        DocumentRoot    "/home/dengmi/lm/gm/gm_game/web/gm"
        ServerName      gm.lm.game2.cn
        ServerAlias     gm.lm.game2.cn
        <Directory "/apps/lm/htdocs/web/gm">
#       <Directory "/home/dengmi/lm/gm/gm_game/web/gm">
                AllowOverride All
                Options +Includes
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [L]
        RewriteRule ^([^/]*)/$ index.php?controller=Controller_Default_$1 [QSA,L]
        RewriteRule ^([^/]*)/([^/]*)/$ index.php?controller=Controller_Default_$1&action=$2 [QSA,L]
        RewriteRule ^([^/]*)/([^/]*)/(.*)$ index.php?controller=Controller_Default_$1&action=$2&params=$3 [QSA,L]
        </Directory>
</VirtualHost>