我已经在Windows 7上运行了Apache 2.2。但是,命令行不起作用 – 如果我inputhttpd,它会显示: httpd不被识别为内部或外部命令,程序或batch file。 为什么是这个,如何解决?
我可以访问安装了apache的Ubuntu机器,我连接到使用PuTTy。 出于某种原因,我的.htaccess文件不能正常工作,这是它包含的所有内容: ErrorDocument 404 /handler.php 而不是去到handler.php页面,它打印出一般Not Found apache页面。 我search了谷歌,所有我能find的信息说,确保在你的ApacheconfigurationAccessFileName设置为.htaccess和AllowOverride设置为全部。 我改变了我的configuration文件(/etc/apache2/apache2.conf),它现在包含这个: AccessFileName .htaccess <Directory /> AllowOverride All #AllowOverride None </Directory> 我重新启动apache( sudo /etc/init.d/apache2 restart ),但我仍然得到完全相同的问题。 对不起,我对Linux和Apache Config不熟悉。
我有过期的请求进入我的服务器上的自定义端口(2104)。 http://www.server.com:portX 我现在已经安装我的机器来处理这些请求: http://subdomain.server.com:80 但是,我如何redirect旧的请求呢? (通过httpd魔术)
我已经在Windows 7 Ultimate 64位的默认位置安装了Zend Server CE 5.1.0,这意味着我的htdocs的path是C:\Program Files (x86)\Zend\Apache2\htdocs 。 不是每次我在Eclipse中检出SVN项目时都想input的内容。 我想将DocumentRoot设置为不同的文件夹,即D:\www 。 我做了什么 我编辑了conf/httpd.conf ,重要的代码是: DocumentRoot "D:\www" <Directory "D:\www"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> Include conf/extra/httpd-vhosts.conf 我编辑了conf/extra/httpd-vhosts.conf来添加一个虚拟主机: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot D:\www ServerName localhost ServerAlias localhost SetEnv APPLICATION_ENV development SetEnv APPLICATION_DOMAIN localhost </VirtualHost> <VirtualHost *:80> DocumentRoot D:\www\UmbraCMS […]
我已经在我的虚拟主机中设置了以下内容: <VirtualHost app.pdf-edelivery.com> ServerName app.pdf-edelivery.com DocumentRoot /home/pdfedelivery/public_html/site <Directory "/home/pdfedelivery/public_html/site/"> allow from all Options +Indexes </Directory> </VirtualHost> 前提是我想将app.pdf-edelivery.comredirect到site/文件夹。 这是我面临的问题。 我觉得有一些冲突。 如果您ping app.pdf-edelivery.com它parsing为我的服务器的正确的IP地址。 该logging上方约有6条logging(在httpd.conf文件中)有这样的logging: <VirtualHost pdf-edelivery.net> DocumentRoot /home/pdfedelivery/public_html <Directory "/home/pdfedelivery/public_html"> allow from all Options +Indexes </Directory> ServerAlias www.pdf-edelivery.net pdf-edelivery.net www.pdf-edelivery.com pdf-edelivery.com www.pdfedelivery.com pdfedelivery.com www.pdfedelivery.net pdfedelivery.net www.pdfedelivery.com.au pdfedelivery.com.au </VirtualHost> 我所担心的是与上述logging有冲突。 无论多less次重新启动apache,我都无法使app.pdf-edelivery.com进入正确的网站(您可以通过pdf-edelivery.com/site/查看) 任何想法,我在这里失踪?
我可以在/etc/httpd/conf/httpd.conf中看到以下条目 RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* – [F] configuration文件中这些行的用法是什么?
我想为所有的域名制定一般规则,所以我不必单独指定每个域名。 我在我的Apacheconfiguration文件中有这两行: RewriteCond %{HTTP_HOST} ^domain\.com RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,QSA] 现在我有更多的域指向同一个目录。 而我将不得不重复这两行每个域。 我试图编辑这个条件和规则,但没有成功,使他们通用的任何域没有实际指定的域名。 可能吗 ?
我已经安装了Ubuntu Server和Apache2 。 我想通过添加以下代码来testing我的httpd.conf : <Directory /> Order allow,deny Deny from all </Directory> + apache重启 进入网站时应该出现403错误,但是我可以正常浏览我的index.html 。
我正在Fedora linux上运行全新的httpd安装以及我所有的静态内容403s。 error_log显示了这一点: mod_rewrite: can't access DBM RewriteMap file 我该如何解决? 谢谢,克里斯
我比较了两个Apacheconfiguration文件( httpd.conf ),一个在Apache 2.2.15的CentOS 6.2虚拟机上,一个在Apache 2.2.3的RedHat 5.8服务器上,我看到一个奇怪的差别。 UserDir disabled | UserDir disable # directory, remove the "UserDir disabled" line above, an | # directory, remove the "UserDir disable" line above, and 在一种情况下使用UserDir disabled ,并在其他UserDir disable使用。 没有看到差异? 一个以d结尾,另一个不使用形容词来引用UserDir的结果状态 ,另一个使用动词告诉Apache应该对UserDir 做些什么。 哪个是对的? 两者都能工作吗? 更新 :鉴于这似乎是一个系统pipe理员错误,而不是从一个版本的Apache到另一个版本的语法变化,或者在RedHat的Apache分发错误,我想这个问题可能是无用的,我应该删除它。 思考?