apache2.4经常报的403错误解决
2015-11-21 13:15
696 查看
请检查目录有没有权限,譬如:
多主机头应该这样写:
而alias应该这样写:
多主机头应该这样写:
NameVirtualHost *:9073 <VirtualHost *:9073> ServerName dummy-host2.example.com DocumentRoot "D:/web-root/phpcms" <Directory> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost>
而alias应该这样写:
<IfModule alias_module> # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a <Directory> section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "/xampp/cgi-bin/" Alias /phpcms "D:/web-root/phpcms" <Directory "D:/web-root/phpcms"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </IfModule>
相关文章推荐
- Python2.7 Django1.8 CentOS7 Apache2.4 mod_wsgi4.4.21 环境下部署
- apache2.2 虚拟主机配置详解
- java导入apache的FileUtils的jar包—删除文件(夹)中的内容
- apache服务器开启rewrite模式(隐藏index.php)
- Apache服务器的vhost------可实现在同一台服务器上放置多个网站
- apache 2.4.9配置
- 【转】利用 Apache JMeter 测试 WebSphere 性能
- Apache HAWQ LIBYARN模块简介 [作者:林文]
- apache kafka监控系列-KafkaOffsetMonitor
- 【转】Apache JMeter web性能测试实例
- Apache高并发假死
- 【转】Apache Jmeter发送post请求
- Apache Spark技术实战之6 --Standalone部署模式下的临时文件清理
- 11月Web服务器份额:Apache称霸 份额涨2.47%
- 阿里巴巴加入 Apache 基金会并捐赠项目 JStorm
- 阿里巴巴加入 Apache 基金会并捐赠项目 JStorm
- Apache common包应用集合
- 关于HBase报错org.apache.hadoop.hbase.NotServingRegionException的异常分析
- apache2.4+weblogic12, 访问时报413(请求体太大)
- Apache CXF初级介绍(一)