Maison > php教程 > php手册 > le corps du texte

apache配置

WBOY
Libérer: 2016-08-31 08:40:56
original
1173 Les gens l'ont consulté
<virtualhost><span style="color: #000000;">
    ServerAdmin webmaster@dummy</span>-host2.example.<span style="color: #000000;">com
    ServerAdmin webmaster@dummy</span>-host.example.<span style="color: #000000;">com
    DocumentRoot </span>"e:/www/WapSources/01 code"<span style="color: #000000;">
    ServerName wap</span>.weilan.<span style="color: #000000;">com
    </span><span style="color: #008000;">#</span><span style="color: #008000;">ServerAlias www.dummy-host.example.com</span>
    <span style="color: #008000;">#</span><span style="color: #008000;">ErrorLog "logs/dummy-host.example.com-error.log"</span>
    <span style="color: #008000;">#</span><span style="color: #008000;">CustomLog "logs/dummy-host.example.com-access.log" common</span>
    
    <directory code><span style="color: #000000;">
        Options Indexes FollowSymLinks
        AllowOverride all
        Order allow</span>,<span style="color: #000000;">deny
        Allow from all
    </span></directory>
    <ifmodule mod_rewrite.c><span style="color: #000000;">
        RewriteEngine on
        RewriteCond </span>%{REQUEST_METHOD} ^(TRACE|<span style="color: #000000;">TRACK)
        RewriteRule </span>.* -<span style="color: #000000;"> [F]
        Rewriterule </span>^(.*)/(.*)/index.html$ $1/index.php?$2<span style="color: #000000;">
        Rewriterule </span>^(.*)/(.*)/index(\d+).html$ $1/index.php?$2&page=$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/(.*)/a(\d+)\.html$ $1/index.php?$2/$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/u/(\d+)/(.*)$ $1/index.php?u&$2&$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/u/(\d+)/(.*)/$ $1/index.php?u&$2&$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/u/(\d+)$ $1/index.php?u&$2<span style="color: #000000;">
        Rewriterule </span>^(.*)/u/(\d+)/$ $1/index.php?u&$2<span style="color: #000000;">
        Rewriterule </span>^(.*)/(.*)/index.html\?(.*) $1/index.php?$2&$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/(.*)/index(\d+).html\?(.*) $1/index.php?$2&$3<span style="color: #000000;">
        Rewriterule </span>^(.*)/index.action(.*) $1/index.php$3
    </ifmodule>
    
</virtualhost>
Copier après la connexion

简洁版:

#指定自己的哪个网卡的哪个IP地址,可以访问虚拟主机
NameVirtualHost *:80

 #指定虚拟主机的域名
 ServerName yangzailu.com
 #指定虚拟目录
 DocumentRoot "e:/www/web1"
 #指定目录权限
 
       Options Indexes FollowSymLinks
       AllowOverride All
       Order Deny,Allow
       Deny from all
       Allow from all
 

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!