尝试通过浏览器访问localhost时出现此错误.
AH01630: client denied by server configuration
我使用以下方法检查了我的站点文件
sudo chmod 777 -R *
这是我的配置文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user-name/www/myproject
<Directory />
    Options FollowSymLinks
    AllowOverride all
    Allow from all
</Directory>
<Location />
  Allow from all
  Order Deny,Allow
</Location>
<Directory  /home/user-name/www/myproject/>
    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 all
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, …我cmsplus.dev在/etc/apache2/sites-available用下面的代码,
<VirtualHost *:80>
    ServerAdmin master@server.com
    ServerName www.cmsplus.dev
    ServerAlias cmsplus.dev
    DocumentRoot /var/www/cmsplus.dev/public
    LogLevel warn
    ErrorLog /var/www/cmsplus.dev/log/error.log
    CustomLog /var/www/cmsplus.dev/log/access.log combined
</VirtualHost>
现在当我使用时sudo /usr/sbin/a2ensite cmsplus.dev,我收到了错误,
ERROR: Site cmsplus.dev does not exist!
我的网络服务器 Apache/2.4.6 (Ubuntu)
如何解决这个问题?
服务器PHP升级后,我在Apache 2.0上使用PHP Version 5.6.2收到以下错误
A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257
我怎样才能解决这个问题?
我目前的网址看起来像这样[mysite]index.php/[rest of the slug].
我想index.php从这些网址中删除.
mod_rewrite在我的apache2服务器上启用.在config,$config['index_page'] = ''; 
我的codeignitor根.htaccess文件包含,
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
但它仍然无法正常工作.我哪里错了?
我已经在启用站点的目录中为我的一个网站编辑了变量AllowOverride.如何在不重新启动apache的情况下重新加载新配置?可能吗?
我有一个网站,我使用github(封闭源)来跟踪更改和更新网站.唯一的问题是,看起来.git目录可以通过网络访问.我怎么能阻止它仍然可以使用git?
我应该使用.htaccess吗?我应该更改.git的权限吗?
在网上很难找到针对这个问题的Mac特定答案,所以我希望那里有人能为我安排这个问题吗?我的权限被搞砸了我的网站,我不知道如何解决它们而不仅仅在一切明显不正确的情况下抨击递归777.
谢谢!
我刚刚安装了Apache 2.2.17,我第一次使用它.
现在,当我尝试使用该命令启动服务器时,service httpd start它向我提供了以下消息:
httpd:无法可靠地确定服务器的完全限定域名,使用:: 1表示ServerName
现在我想我必须在搜索Google时设置ServerName和IP地址.但我不知道我必须设置哪个文件.
我该如何解决这个问题?
我使用centOS服务器.我想配置apache来监听端口8079.我添加了LISTEN 8079指令httpd.conf.
我在iptables中打开了端口8079并重新启动了iptables.我甚至停止了iptables服务.
"netstat -nal | grep 8079" shows "tcp  0 0 :::8079 :::* LISTEN"
如果我尝试访问http://localhost:8079或http://myserver.com:8079从该计算机访问,我可以访问该页面.但是从任何其他机器我无法访问80以外的任何端口上的站点.在端口80上,它可以工作.在端口8079上没有.  
我还需要配置什么?
apache2 ×10
.htaccess ×2
apache ×2
codeigniter ×2
php ×2
apache2.4 ×1
chmod ×1
chown ×1
fedora ×1
git ×1
macos ×1
permissions ×1
server ×1
ubuntu-12.04 ×1
virtualhost ×1
webserver ×1