我用的是系统自带的apache 2.2.3,系统为RH server 5,apache为随系统安装时候带的RPM包 我安装了MRTG后,在/var/www/html/目录下建立mrtg目录,并将生成的index.html文件放在该目录下 我重启了httpd后仍然不能访问mrtg/index.html,提示: You don't have permission to access /mrtg/index.htmlon this server. 我在/var/www/html下做了个测试页index.html,重启后能够正常访问 我看了/var/www/html目录的权限为755,root,root,我将html...
by realgod - 服务器应用 - 2008-07-01 22:28:11 阅读(5872) 回复(5)
drwxr-xr-x 2 root root 4096 Apr 10 16:50 html
drwxr-xr-x 3 root root 4096 Apr 2 15:55 icons
drwxrwxr-x 7 root root 4096 Apr 10 16:36 phpmyadmin
[root@web conf.d]# more phpmyadmin.conf
Alias /phpmyadmin /var/www/phpmyadmin
本帖最后由 aboys 于 2010-07-30 16:49 编辑
Hi~[code]
首先我的系统是Fedora 9的。
装好了apache(httpd-2.2.9)软件,配置了一些环境。
也能正常启动了。访问htdocs下面的文件没有问题。
后面想想Alias 目录
就顺便找了个目录,我是把该目录放在/usr/local/src 目录下的。
比如:test吧。
后面就在配置文件中写上如下内容
Alias /test/ "/usr/local/src/test"
apache version 2.0.52(Linux) 配置了标准的html 和 cgi-bin 目录都没什么问题。 现在我想在让每个人都拥有一个各自用户ID的非标准的html 和 cgi-bin 目录。 ---〉按照说明配置完apache, 重起apache一切正常, 可以访问http://127.0.0.1/ 及 http://127.0.0.1/cgi-bin 可是当我要访问用户ID下的页面( http://127.0.0.1/~zzhiou/ http://127.0.0.1/~zzhiou/index.php http://127.0.0.1/~zzhiou/test.html)时, 都是出 " 403 ...
发表于: 2005-10-31 16:10 [编辑] [引用] [投诉] [快速回复] -------------------------------------------------------------------------------- 我用的是 apache version 2.0.52(Linux) 配置了标准的html 和 cgi-bin 目录都没什么问题。 现在我想在让每个人都拥有一个各自用户ID的非标准的html 和 cgi-bin 目录。 ---〉按照说明我继续配置完apache, 重起apache一切正常, 可以访问http://127.0.0.1/ 及 http:...
系统是RedHat EL as4,安装的时候就禁用了SELinux和防火墙。编译安装的apache2.2.9,在httpd.conf中把DocumentRoot主目录更改到了/home/user/www下,重启apache后就出现了“403 forbidden”,下面是我的代码片断,红色为修改部分:
...
DocumentRoot "/home/user/www"
...
个人在根目录下新建了目录myweb做测试,用于DocumentRoot,里面存放了在安装目录下的htdocs里的所有文件,我拷贝过去的,目录和文件权限为755,并且httpd_user_content_t(不过当前情况下我的SELinux关闭掉了,这个属性存在与否应该也就无所谓了),而且没有防火墙设置,/myweb/目录及其下所有文件组:所有者为nobody:nobody。 对httpd.conf我修改了以下几个参数: DocumentRoot "/myweb/" User nobody Group nobody DirectoryI...
用虚拟机安装了RH9+MySQL+apache2.0+PHP5.0,都工作正常, 于是把phpinfo.php网页复制到/usr/local/apache2/htdocs下面想看看能不能运行php,在浏览器里面输入http://localhost/phpinfo.php后出现: forbidden You don't have permission to access /phpinfo.php on this server. -------------------------------------------------------------------------------- apache/2.0.52 (Unix) PHP/5.0.2 Server at **My IP**Port ...
Error Message: forbidden You don’t have permission to access /cgi-bin/jha.cgi on this server. Additionally, a 403 forbidden error was encountered while trying to use an ErrorDocument to handle the request. apache/2.0.52 (Red Hat) Server at rhino.sbcld.sbc.com Port 80 Below is the soft link i created under /var/www/cgi-bin/ jha.cgi -> /home/emasld/EMAS_WEB_PROD/app/jha.cgi Solution: cd /selin...
freebsd6.1已升级PORTS安装APACHE20时出现如下错误提示,请大大们帮忙看看~~小弟在此感谢(以前也是这样安装的就没有问题) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_all = "zh_CN.euc", LANG = "zh_CN.euc" are supported and installed on your system. perl: warning: Falling back to the standard l...