linux – .htaccess无效(mod_rewrite)
发布时间:2021-05-17 10:46:00 所属栏目:Linux 来源:网络整理
导读:副标题#e# 编辑:我很确定我的.htaccess文件没有被执行,问题不在于我的重写规则. 我没有运气,因为mod_rewrite正在运行我的.htaccess.基本上我所要做的就是从“http://www.site.com”和“https://www.site.com”中删除“www”. 如果有什么我遗失的(conf文件
我在apache上的www的默认配置文件 NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin info@site.com #SSLEnable #SSLVerifyClient none #SSLCertificateFile /usr/local/ssl/crt/public.crt #SSLCertificateKeyFile /usr/local/ssl/private/private.key DocumentRoot /var/www/site/trunk/html <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/site/trunk/html> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug,emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> (编辑:成都站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Linux内核分析 - 网络[十三]:校验和
- linux – 更改默认网关,多个NIC
- system libzip must be upgraded to version gt;= 0.11
- linux – 修改后缀队列中文件上的电子邮件的收件人地址
- 符文消除大师怎么玩?附攻略
- linux – 防止用户将窗口(xterm,gvim,..)发送到我的VNC显示
- 我如何知道要为我的Linux AMI安装哪个Linux软件包
- The path "/usr/bin/gcc" is not valid path to the gcc
- linux内核md源代码解读 六 先容raid10阵列的运行
- Linux全攻略--FTP服务器配置与管理