我一直在努力寻找这个:你怎么能问问apache使用哪个httpd.conf文件来加载? 当你运行一些apache的实例,或者你长时间没有看这台机器,并且在磁盘上有很多的httpd.conf文件时,就变得很困难了! 非常感谢 :)
我们有一个3000 301redirect列表。 我们需要帮助 最好的地方放什么? 这似乎把这些3000行内的虚拟主机在httpd.conf将是一团糟。 build议如何处理数千个url? 它会影响页面加载速度和Apache服务器负载多less? 谢谢。
我想知道VirtualHost上下文中的“ default :*”和“*:*”之间的区别。 <VirtualHost _default_:*> #… ServerName host.example.com #… </VirtualHost> <VirtualHost *:*> #… ServerName host.example.com #… </VirtualHost> 我不知道使用的差异和porpouse。 THK
我试图在Mac OS X上设置虚拟主机。我一直在修改httpd.conf并重新启动服务器,但一直没有运行它的工作。 此外,我注意到它没有提供httpd.conf(Libraries / WebServer / Documents)中提到的DocumentRoot中的文件,而是在不同的目录(/ usr / local / apache2 / htdocs)中提供文件。 我没有看到在httpd.conf中提到的任何地方的这个文件夹。 此外,PHP的作品,但“LoadModule php5_module”行被注释掉。 这使我认为它使用另一个.conf文件。 我怎样才能找出哪个configuration实际上被加载? 更新:我刚刚删除了httpd.conf和Apache重启后的行为相同,所以它绝对没有使用它!
我有两个Ruby on Rails 3应用程序运行在相同的服务器,(Ubuntu 10.04),都与SSL。 这是我的apacheconfiguration文件: <VirtualHost *:80> ServerName example1.com DocumentRoot /home/me/example1/production/current/public </VirtualHost> <VirtualHost *:443> ServerName example1.com DocumentRoot /home/me/example1/production/current/public SSLEngine on SSLCertificateFile /home/me/example1/production/shared/example1.crt SSLCertificateKeyFile /home/me/example1/production/shared/example1.key SSLCertificateChainFile /home/me/example1/production/shared/gd_bundle.crt SSLProtocol -all +TLSv1 +SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM </VirtualHost> <VirtualHost *:80> ServerName example2.com DocumentRoot /home/me/example2/production/current/public </VirtualHost> <VirtualHost *:443> ServerName example2.com DocumentRoot /home/me/example2/production/current/public SSLEngine on SSLCertificateFile /home/me/example2/production/shared/iwanto.crt SSLCertificateKeyFile /home/me/example2/production/shared/iwanto.key SSLCertificateChainFile /home/me/example2/production/shared/gd_bundle.crt […]