apache重写机制& ubuntu apache启动报错 除开主页全是404
2017-06-20 12:45
639 查看
apache的重写机制,分为两步:
1,修改apache.conf,将其中的AllowOverride None,改成All
2,配置文件里加loadmodule rewrite.so 或者ubuntu系统可以用a2enmod rewrite命令并重启apache
在Unbuntu中重启Apache服务器出现错误:AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.等等。解决方法:
$ sudo vim /etc/apache2/apache2.conf
最后加入一句: ServerName localhost:80
1,修改apache.conf,将其中的AllowOverride None,改成All
2,配置文件里加loadmodule rewrite.so 或者ubuntu系统可以用a2enmod rewrite命令并重启apache
在Unbuntu中重启Apache服务器出现错误:AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.等等。解决方法:
$ sudo vim /etc/apache2/apache2.conf
最后加入一句: ServerName localhost:80
相关文章推荐
- Ubuntu Server 14.04 & Apache2.4 虚拟主机、模块重写、隐藏入口文件配置
- Ubuntu samba共享&tomcat启动
- windows xp下的Apache启动不了(logs出现:"(OS 10022)提供了一个无效的参数。")
- ubuntu下apache&php&虚拟主机开发环境配置
- Ubuntu下:启动工程ruby script/se…
- hadoop-0.20.2 & hbase-0.90.1 集群启动错误“org.apache.hadoop.ipc.RPC$VersionMismatch: Protocol org.apache.hadoop.hdfs.protocol.ClientP
- 一个APACHE重写机制实例的两点细节
- Ubuntu下开启Apache重写扩展
- 启动apache服务出现Job failed. See system logs and 'systemctl status' for details.
- Apache启动"httpd: Could not reliably determine the server's fully qualified domain name, using 127.0."
- Update-rc.d && rc.local管理Ubuntu的开机启动
- Apache 选择"only for the Current User, on 8080, when started Manually"时的服务启动方法及如何修改端口号
- hadoop-0.20.2 & hbase-0.90.1 集群启动错误“org.apache.hadoop.ipc.RPC$VersionMismatch: Protocol org.apache.hadoop.hdfs.protocol.ClientP
- Ubuntu下开启Apache重写扩展
- 双系统[Win & Ubuntu] 重装Win后恢复启动选项
- 在使用Clearlooks&blubuntu-looks桌面主题时,启动gedit报的错误信息解决方案
- Ubuntu下apache启动出错:Permission denied: make_sock: could not bind to address
- Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动
- apache webserver & brows 会话机制
- ubuntu apache开启重写模块