我们已经为https://www.domain.com购买了SSL证书。 用户将通过https : //sub1.domain.com,https://sub2.domain.com等访问域 我希望能够通过Apacheredirect这些子域名。 因此,例如, https://sub1.domain.com成为https://www.domain.com/sub1 。 这是可能做到这一点,而不提出用户“不安全的连接”错误?
Apache已经运行好几个月,重新启动运行良好。 不过,我今天去重新启动它,得到这个: [django – pin@e02u35]~>sudo /etc/init.d/httpd restart … Starting httpd: [FAILED] 所有我在/ var / log / httpd / error_log中find的是这个,但我不确定是否相关: [Thu Jul 07 08:19:25 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Jul 07 08:19:25 2011] [error] Unable to change directory to /home/pin 如果重要的话,我的主目录里没有任何httpd应该看的东西。 它应该以apache用户身份运行,httpd.conf中也没有任何内容引用我的主目录。 我卡住了。 有谁知道我怎么能得到更多的信息,哪里出了问题,或者什么可以解决这个问题? 系统信息 Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 […]
我继续从WHM发送给我的HTTPD失败消息,看似随意… cPanel ChkServd Service Monitor httpd on vds64_centos54 failed. httpd failed A restart was attempted automagically. Failure reason: Service check failed to complete httpd: [!= http/1…] cPanel ChkServd Service Monitor httpd on vds64_centos54 failed. httpd failed A restart was attempted automagically. Failure reason: Service check failed to complete httpd: [!= http/1…] cPanel ChkServd Service Monitor […]
我想在我的configuration文件中创build一个Location / LocationMatch指令到ProxyPass我的网站主页“ http://www.example.com ”,而不影响任何其他位置和目录。 我试过<LocationMatch ^$>但它根本不起作用。 如果可能,我怎样才能创build这个位置? 谢谢,
我设置了一个新的专用服务器,但我注意到奇怪的请求,显示在页面上主服务器状态>> Apache状态 ,WHM 11-1 – 0/0/159 . 0.16 57 0 0.0 0.00 0.66 127.0.0.1 server.hostname.com OPTIONS * HTTP/1.0 12-1 – 0/0/63 . 0.00 59 0 0.0 0.00 0.20 127.0.0.1 server.hostname.com OPTIONS * HTTP/1.0 13-1 – 0/0/161 . 0.00 58 0 0.0 0.00 0.75 127.0.0.1 server.hostname.com OPTIONS * HTTP/1.0 14-1 – 0/0/94 . 0.00 137 0 […]
有人能告诉我什么httpd.conf设置我需要实现这个? 当我在浏览器中访问http:// IP我想显示:/ var / www / html /而当我访问http://域时,我想显示/ var / www / html / _domains / domain 但我不知道如何(或任何选项)应该看起来像http:// IP不断显示域目录,而不是HTML根目录。
我更喜欢在我的生产服务器上禁用httpddynamic模块加载。 我一直使用mod_jk静态链接到httpd相当长的一段时间,它被certificate是稳定的。 现在我想将Ruby Passenger(mod_rails / mod_rack)添加到我的httpd中。 我想知道是否有可能以同样的方式静态链接到Apache httpd? (没有产生一个巨大的httpd) 如果是的话,是否有任何潜在的陷阱,安全或性能方面的问题,在同一个可执行文件中都有mod_jk和mod_rails? 谢谢
我的httpd.conf如下所示: NameVirtualHost 12.34.56.78:80 <VirtualHost 12.34.56.78:80> DocumentRoot /var/www/html/site ServerName www.example.com <IfModule mod_rewrite.c> RewriteEngine On … </IfModule> </VirtualHost> <VirtualHost 12.34.56.78:80> ServerName blog.example.com DocumentRoot /var/www/html/blog </VirtualHost> Listen *:2194 <VirtualHost *:2194> Redirect / http://mgr.example.com/ </VirtualHost> 我想能够启用“类别”作为子域名,即如果用户访问: science.example.com 它应该向他显示URL本身,但向他展示www.example.com/science.php的内容 它不一定是一个通用的/通配符的方法 – 这些类别将是一个我可以单独指定的小数字。 我只是不想要添加任何干扰网站的现有function。 我怎样才能做到这一点?
二进制文件位于/usr/sbin/ 当我运行strace -o httpdstart.txt /usr/bin/httpd -k start 它有以下几行来打开httpd.conf stat("/etc/httpd/conf/httpd.conf", {st_mode=S_IFREG|0644, st_size=35894, …}) = 0 open("/etc/httpd/conf/httpd.conf", O_RDONLY|O_CLOEXEC) = 3 所以当通过手动加载时: httpd -k start 要么 /usr/bin/httpd -k start 按照预期的httpd加载/etc/httpd/conf/httpd.conf进行configuration。 我也运行strace -o httpdstart.txt /etc/init.d/httpd -k start 我得到: Usage: httpd {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest} 所以用法说,我不能使用httpd rc脚本的任何选项。 所以我运行strace -o httpdstart1.txt /etc/init.d/httpd start 。 它没有打开任何httpd.conf文件的痕迹。 init.d中的httpd rc脚本具有: apachectl=/usr/sbin/apachectl httpd=${HTTPD-/usr/sbin/httpd} 即它指向正确的二进制文件。 httpd -V具有以下输出: 服务器版本:Apache / […]
我只是设置了一个新的亚马逊ec2实例,并安装了Apache,并设置configuration和一切,但是当我访问的url没有什么….我有适当的端口打开,并与阿帕奇相关…这里是我的端口..我错过了什么 sudo netstat -nap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1260/mysqld tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1116/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1290/sendmail: acce tcp 0 0 10.244.133.179:34223 207.171.163.206:80 TIME_WAIT – tcp 0 208 10.244.133.179:22 24.172.85.150:3797 ESTABLISHED […]