Articles of httpd.conf

如何将httpd.conf标记转换为.htaccess规则?

我正在安装doxWiki ,并且web服务器安装说明假定对httpd.conf root权限 – 我的提供程序1and1只允许访问.htaccess 下面是doxWiki httpd.conf示例 ServerAdmin [email protected] DocumentRoot "/home/doxWiki/htdocs" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/home/doxWiki/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <IfModule alias_module> Alias /images "/home/doxWiki/images" ScriptAlias // "/home/doxWiki/" </IfModule> <Directory "/home/doxWiki"> AllowOverride None Options None Order allow,deny Allow from […]

apache2configuration文件中“python-program”的源代码

我试图调整我的服务器,但我不明白什么是“站点configuration文件中的”python程序“的定义。 由此,我明白这是对python的某种参考。 我的意思是,它在哪里定义? 哪一个版本也能引导?这个variables(如果是这样的话)在哪里引入? 它是否内置到Apache 2? 为了确保我清楚,我在这方面看到它… <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug Off PythonPath "['/main-data/www/mysite'] + sys.path </Location>

Apache2 SSL和Passengerconfiguration问题

我有以下虚拟主机configuration块。 <VirtualHost *:80> DocumentRoot /var/www/html/TestApp/public/ <Directory /var/www/html/TestApp/public/> Allow from all Options -MultiViews </Directory> </VirtualHost> NameVirtualHost *:443 <VirtualHost *:443> DocumentRoot /var/www/html/TestApp/public/ <Directory /var/www/html/TestApp/public/> Allow from all Options -MultiViews </Directory> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/server.crt SSLCertificateKeyFile /etc/pki/tls/private/server.key </VirtualHost> 我试图在Apache上为客户提供Rails应用程序。 问题: 在不使用SSL的情况下,TestApp可以正常使用Apache和Passenger当我使用https:// ,我看到了/var/www/html TestApp的path是/var/www/html/TestApp 任何帮助都感激不尽。

PHPMyAdmin 500内部服务器错误

我家的PHPMyAdmin在一两天前工作的很好。 现在它给了我一个通用的500内部服务器错误,并build议我看看我的服务器日志。 Apache日志包含这些错误消息: [Sun Feb 06 23:38:56 2011] [error] [client ::1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. 这是我卡住的地方。 有什么东西在创造一个无限循环,但是它可能是什么? 自PHPMyAdmin上次工作以来,我没有做任何事情(我能想到)。 我将在哪里遵循LimitInternalRecursion和LogLeveldebuggingbuild议…某种.htaccess文件? 我不知道在哪里可以find。 任何人都可以提供任何针对解决scheme或行动方针的指针? 编辑:感谢Alvosu我已经能够从重写日志中获得一些信息: ::1 – – [07/Feb/2011:09:19:48 –0800] [localhost/sid#10080d720][rid#1009854a8/initial] (3) [perdir /Library/WebServer/Documents/] […]

apache2的默认虚拟主机设置?

在网站 – 可用/默认有一些默认configuration..就像: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> […] 和 Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> […] 我可以删除这些或他们需要一些Apache的function?

什么是我的Apache服务器的瓶颈?

$netstat -anp | grep :80 | grep TIME_WAIT | wc -l 840 $netstat -anp |grep :80 | grep ESTABLISHED | wc -l 50 内存使用量:850MB / 1000MB apache2.conf包含.. <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild […]

什么是我的Apache服务器的性能瓶颈?

我有太多的请求等待从netstat可以看出如下 $netstat -anp | grep :80 | grep TIME_WAIT | wc -l 840 $netstat -anp |grep :80 | grep ESTABLISHED | wc -l 50 内存使用量:850MB / 1000MB apache2.conf包含.. <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 […]

只有在Win7上将RewriteLogLevel设置为> 0后,才能进行Apache“连接重置”

我正在使用工作计算机上的mod_rewrite,它在XP上运行apache 2.2。 更有针对性的是,我使用RewriteLogLevel 9进行debugging。 没问题。 我回家在Windows 7上使用apache 2.2做更多的工作。configuration唯一的改变是添加和设置RewriteLog和RewriteLogLevel。 重新启动Apache后,我从chrome获取ERR_CONNECTION_RESET。 如果我将RewriteLogLevel设置为0,则不会出现错误。 大于0的任何东西都会得到ERR_CONNECTION_RESET。 我认为这可能是权限,但我检查了我添加的configuration: RewriteLog "c:/wamp/logs/rewrite.log" RewriteLogLevel 1 c:/wamp/logs/rewrite.log被创build,但没有被写入。 错误日志没有显示任何exception。 任何想法,我可能会寻找线索?

为所有目录指定DirectoryIndex,但指定一个?

我正在运行Apache运行的Windows机器上的一组Web应用程序。 我的文档根目录有以下内容: /MyWebApp1 /MyWebApp2 /MyWebApp3 /Common /css /images /script 我希望每当指定根文件夹或对应于Web应用程序的文件夹时,都会提供index.php : / ==> /index.php /MyWebApp1 ==> /MyWebApp1/index.php /MyWebApp2 ==> /MyWebApp2/index.php /MyWebApp3 ==> /MyWebApp3/index.php 但是我不想为/Common和它的子文件夹指定一个目录索引: /Common ==> Error 403 /Common/css ==> Error 403 /Common/images ==> Error 403 /Common/script ==> Error 403 我怎样才能做到这一点? 编辑 :顺便说一句,我所托pipe的Web应用程序的数量将在未来增长,我不想每次添加Web应用程序时重新configurationApache。 明确枚举每个MyWebApp<i>并不令人满意。

WordPress漂亮的固定链接不工作

我不能让WordPress漂亮的固定链接工作在我的Fedora LAMP服务器上。 如果我设置他们,并点击页面/post链接,我会得到一个“”哎呀! 这个链接似乎被打破了。“ .htaccess文件是可写和正在更新, mod_rewrite模块似乎是加载在我的httpd.conf(见下文) 我的apache日志中的错误只是简单地说“Document not found”。 我在绳子的尽头! 这里是httpd.conf : ### Section 1: Global Environment # start the rewrite engine (I ADDED THIS) RewriteEngine on ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 […]