搜了N变教程,还是没配置好apache 虚拟目录 伪静态,求大家帮忙看下问题出在哪
根据网上搜索的教程来配置apache 虚拟目录伪静态,结果还是无法实现,请大家帮忙找下原因,非常感谢!
第一步:开启伪静态
将httpd.conf中#LoadModule rewrite_module modules/mod_rewrite.so,取消注释
将AllowOverride None全部替换成AllowOverride All
第二步:开启虚拟目录
将httpd.conf中#Include conf/extra/httpd-vhosts.conf,取消注释
并在httpd-vhosts.conf中配置虚拟目录,虚拟目录内容如下
<VirtualHost 127.0.0.2><br />
ServerAdmin admin@system<br />
DocumentRoot "F:/phpsite/myweb"<br />
ServerName 127.0.0.2<br />
<Directory "F:/phpsite/myweb"><br />
Options Indexes FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
</Directory><br />
</VirtualHost><br />
<IfModule mod_rewrite.c><br />
RewriteEngine on<br />
RewriteRule ^/conf_([0-9]*).html /conf.php?arg=$1<br />
</IfModule>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号