我试图用虚拟主机设置一个zend项目,但我无法从快速入门获取示例代码来工作。 我把它添加到httpd.conf现有行的末尾 <VirtualHost *:80> ServerName quickstart.local DocumentRoot /path/to/quickstart/public SetEnv APPLICATION_ENV "development" <Directory /path/to/quickstart/public> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> 这对我的主机文件 127.0.0.1 quickstart.local 在我编辑这些文件之前,apache web服务器工作正常,但是之后我得到“请求的操作失败”错误。
好的,问题如下所示: 我有一个IP(123.123.123.123) 我有多个域名 我使用子域进行testing 所以基本上我需要为www.example.com,wwww.example2.com以及一些开发用户user1.example.com和user2.example2.com提供子域名。 除此之外,www.example.com也将需要使用端口443。 我已经看到了很多build议,并没有一个似乎有效。 也许我只需要在这里填写的空白,实际上会工作? Listen ??? NameVirtualHost ??? <VirtualHost ???> DocumentRoot /home/user1/example.com ServerName user1.example.com ErrorLog logs/user1.example.com-error_log CustomLog logs/user1.example.com-access_log common from all <Directory "/home/user1/example.com/public"> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost ???> DocumentRoot /home/user2/example.com ServerName user2.example.com ErrorLog logs/user2.example.com-error_log CustomLog logs/user2.example.com-access_log common from all <Directory "/home/user2/example.com/public"> AllowOverride All Order allow,deny […]
可能重复: 一切你想知道Mod_Rewrite规则,但不敢问? 我正在寻找一个mod_rewrite规则,将完成这个配方: MOD_REWRITE配方:/ agencyname TO /appname/login.jsp?a=agencyname
我试图在RedHat Linux上安装mod_wsgi。 我得到这个错误: apxs:Error: Command failed with rc=65536 答案似乎在这里 ,但我认为我已经有64位的Python,所以我不清楚在这种情况下我应该做什么。 安装命令: [django – ping@e02u35]~/mod_wsgi-3.3>./configure –with-python=/usr/local/python-2.7.1/bin/python checking for apxs2… no checking for apxs… /usr/sbin/apxs checking Apache version… 2.2.3 configure: creating ./config.status config.status: creating Makefile [django – ping@e02u35]~/mod_wsgi-3.3>make /usr/sbin/apxs -c -I/usr/local/python-2.7.1/include/python2.7 -DNDEBUG mod_wsgi.c -L/usr/local/python-2.7.1/lib -L/usr/local/python-2.7.1/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool –silent –mode=compile gcc -prefer-pic -O2 -g […]
我正在为我正在开发的一个软件项目构build一个Subversion版本库服务器,我想使用trac。 我已经成功安装trac,并使用tracd工具运行 – 但我猜这不是很安全。 我很担心evesdropping,我想通过HTTPS / TLS连接使用trac。 是唯一的方法来完成这个使用像Apache这样的Web服务器? 谢谢!
我一直在尝试设置trac,以便在apache上部署一段时间,而我正在跑进一堵墙。 这是我从我的服务器收到的响应 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available […]
任何关于如何简化我的httpd.conf文件的build议? 除了相关的部分,我已经剥离了一切: Listen <ip-addr-1>:80 Listen <ip-addr-1>:443 <VirtualHost <ip-addr-1>:80> ServerName myservername.com <Proxy balancer://mycluster> BalancerMember http://172.22.22.20 BalancerMember http://172.22.22.21 </Proxy> ProxyPass /app1 balancer://mycluster/app1 ProxyPassReverse /app1 balancer://mycluster/app1 </VirtualHost> # Repeat for 443 <VirtualHost <ip-addr-1>:443> ServerName myservername.com SSLEngine On SSLCertificateFile conf/ssl/mycert.crt SSLCertificateKeyFile conf/ssl/mycert.key SSLCACertificateFile conf/ssl/intermediate.crt <Proxy balancer://mycluster> BalancerMember http://172.22.22.20 BalancerMember http://172.22.22.21 </Proxy> ProxyPass /app1 balancer://mycluster/app1 ProxyPassReverse /app1 balancer://mycluster/app1 </VirtualHost> 反正有没有重复80端口和443端口的所有内容,但打开ssl为443?
我一直试图让Phusion Passenger在过去的几天里以5.6的速度运行,没有运气。 最初,我从RVM下的Ruby 1.9.2开始,因为基于RHEL的发行版的默认Ruby是相当古老的。 我已经安装好了,但遇到了一些问题。 认为这是RVM,我完全删除它与默认的Ruby和安装的Ruby企业版。 1.8.7.2011-03放入/ usr。 我仍然有相同的问题。 当我使用安装程序提供的默认设置说明尝试Passenger时,收到错误消息“无法findphusion_passenger / analytics_logger”。 我发现从谷歌这个很less的信息,但从我可以推测这是一个权限错误。 最初,我尝试设置一个ACL,允许apache用户访问乘客根目录。 如果不行的话,我尝试将passeneger根目录修改为777.接下来,我尝试根据用户指南的第6.3.5节将乘客根目录及其父目录的上下文更改为“httpd_sys_content_t”。 最后,我试着将SELinux设置为宽容。 没有工作。 阅读完用户指南后,我尝试了以下设置,导致500 ISE: PassengerUserSwitching off PassengerUser apache PassengerGroup apache 这是我的passenger.conf文件减去上面(从/etc/httpd/conf.d): LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7 PassengerRuby /usr/bin/ruby …. PassengerLogLevel 3 这是500错误的日志输出: [ pid=17939 thr=1094539584 file=ext/common/ApplicationPool/Pool.h:939 time=2011-04-30 13:12:17.351 ]: Spawning a process for /var/www/html because there are none for this […]
我在一个VPS环境。 我使用Ubuntu 10.04LTS,apache2.2.4,php 5.3.2和vsftpd进行ftp服务。 如果用户用ftp程序连接到服务器,一切工作正常。 但是,如果用户尝试使用ftp从网页安装某些东西(例如,从Web安装drupal模块),则不起作用。 Apache目前由用户运行,称为“www-data” 每个用户都属于他们自己的用户名组。 (例如,用户名为'joe'的用户属于'joe'这个组…可以吗?还是我必须把它们全部放在'users'组中?) 如果看起来这样,一些用户说他们尝试更新后,他们的某些网页目录文件夹的权限已经变成了“www-data”。 另外,通过inputftp信息从Web(PHP)获取目录列表似乎工作正常…只是,如果用户想要服务器连接到某个地址,下载tar.gz文件,并自动安装,它不起作用。 我怎样才能使networking(PHP)的FTP访问工作?
我知道这可能是一个非常新的问题,但我找不到如何解决这个问题。 我设法为我的生产环境(apache)创build了自签名证书并激活了SSL,但是当通过HTTPS访问我的服务器时,浏览器会说“连接不可信”。 我真的需要为像Tawte或Verisign这样的公司付钱吗? 提前致谢。