在一个Centos 6试图从源码升级到特定的apache版本(从2.2.24到2.2.25),因为yum没有正确的版本我需要(或者至less我不能find它的回购)而我遇到了suexec无法运行我的虚拟主机的问题。 我从我的旧版apache版本复制了所有configuration,修改了httpd.conf以反映新的位置和新的端口。 目前我仍然在/ etc / httpd中的端口80上运行我的.24 Apache。我试图configuration我的.25 apache在/ usr / local / apache2,并且每当我启动新的Apache时,我都会得到: Warning: SuexecUserGroup directive requires SUEXEC wrapper. 读一读suexec我看到它需要一个包装,我完全忘记了我的整个Apache编译后去哪里。 是suexec包装东西你可以添加后./config,使,使安装? 我是新的与Apache的工作,所以任何反馈将不胜感激。 编辑:我不知道是否应该尝试删除较新的Apache的整个实例,并尝试重新configuration和使它,但同时我不知道如何删除只有较新的Apache而不搞乱当前configuration版本。
我最近把一个网站从普通的PHP切换到了wordpress驱动。 清漆的前端是相同的规则,以适应wp-admin。 我发现caching命中对我的连接是独一无二的,对于我和朋友查看相同的网站,但不同的机器,命中数明显增加。 我试着改变vcl_hash并简化 sub vcl_hash { set req.hash += req.url; set req.hash += req.http.host; } 尽pipe如此,caching服务对我们来说都是独一无二的。 意思是说,如果我看到“10”的命中数,我朋友的下一个命中应该理想的是“11”; 但他得到“1”作为命中计数,并增加到“2”等,如果他不断刷新页面 我希望有人能帮助我确定这是为什么发生。 这似乎也发生在其他wordpress网站上。 由于从基于php的驱动转换到Wordpress,我注意到了这一点
我正在CentOS虚拟机上build立一个SVN服务器。 我想要实现的是一个端口443上的SVN服务器,可以通过地址https://192.168.0.5:443/svn/ReposXX/trunk访问多个存储库。 networking工作正常。 新服务器在192.168.0.5上是静态的。 我试图结帐作为第一个testing库,我似乎无法得到它的工作。 我总是被禁止(更多细节在下面!)。 [root@svn svn]# uname -a Linux svn 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@svn svn]# ping google.com PING google.com (173.194.46.72) 56(84) bytes of data. 64 bytes from ord08s11-in-f8.1e100.net (173.194.46.72): icmp_seq=1 ttl=56 time=31.6 ms svn版本库位于/var/www/svn/svn/ 。 里面的所有文件夹/存储库都属于apache.apache ,拥有664权限。 [root@svn svn]# pwd /var/www/svn/svn [root@svn svn]# […]
我在我的服务器上有2个网站。 一个我通过我的IP, xxxx / site1访问 。 另一个是注册域名www.mysite.com。 最初,我只有我的/ etc / apache / sites-available / default文件可用,但是当我尝试加载上面的任何一个网站时,我只是得到了我的/var/www/index.html输出。 我使用下面的代码为mysite.com添加了一个新的虚拟主机: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/mysite <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/mysite> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order […]
我昨天在WordPress网站上工作,主要是在Web性能优化能力(在共享主机上)。 有一次,我注意到我的.htaccess文件有冗余的,可能相互矛盾的指令: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # From the HTML5 Boilerplate # https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess # Apache Server Configs v2.0.0 | MIT License # https://github.com/h5bp/server-configs-apache … # BEGIN WordPress RewriteEngine on # # Unless […]
我有一个专用的服务器运行apache2,我想有几个虚拟机(针对不同的开发环境)。 我已经成功地使用virtualbox创build虚拟机。 我的服务器在networking上有一个静态的IP,我有一个域名。 我想通过Apache上的虚拟主机将我的子域redirect到虚拟机。 可能吗 ? 怎么样 ? 对不起,如果这样的问题已经存在,我不知道要search什么关键字。 谢谢。
我将我的magento商店从运行在Apache上的服务器“A”移动到运行NginX的服务器“B” 。 复制所有文件和文件夹,导出和导入SQL DB,使用新的数据库详细信息更改local.xml文件,然后运行一个数据库连接testing脚本,一切正常。 服务器“A”是http://hns.lwea.co.uk/服务器“B”是http://hotnstylish.co.uk/ 当我导航到hotnstylish.co.uk地址我得到一个“默认Magento主题”404错误:页面找不到。 注意: 我以前的这个nginx实例上有另一个magento安装工作正常:( NginX生成以下错误日志: 2013/12/01 17:43:43 [error] 5520#0: *105 access forbidden by rule, client: 127.0.0.1, server: 836237.vps-10.com, request: "POST /app/etc/local.xml HTTP/1.1", host: "836237.vps-10.com" 2013/12/01 17:50:38 [error] 5520#0: *108 access forbidden by rule, client: 127.0.0.1, server: 836237.vps-10.com, request: "POST /app/etc/local.xml HTTP/1.1", host: "836237.vps-10.com" 2013/12/01 17:50:40 [error] 5520#0: *111 access forbidden by […]
我正在为canvas-LMS设置一个testing服务器。 但是,当我按照生产启动指南中的所有步骤安装所有要求并执行所有初始设置后尝试访问它时,我遇到了可怕的“您无权访问/在此服务器上”。 Apache提供的默认网站工作正常,但是当我注册canvas时,我得到了错误。 这里是我的/ etc / apache2 / sites-available / canvas: <VirtualHost *:80> ServerName canvas.example.com ServerAlias files.canvas.example.com ServerAdmin [email protected] DocumentRoot /var/canvas/public RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteCond %{REQUEST_URI} !^/health_check RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] ErrorLog /var/log/apache2/canvas_errors.log LogLevel warn CustomLog /var/log/apache2/canvas_access.log combined SetEnv RAILS_ENV production <Directory /var/canvas/public> Allow from all Options -MultiViews </Directory> </VirtualHost> <VirtualHost *:443> ServerName […]
我有两个相互克隆的服务器,除了一些小的configuration更改外。 当我尝试访问他们的监控。com子域时,我收到了一些意外的行为。 在每台服务器上运行./apache2ctl -S提供以下内容: 登台服务器 VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:443 is a NameVirtualHost default server 010.staging.com (/etc/apache2/sites-enabled/010:2) port 443 namevhost 010.staging.com (/etc/apache2/sites-enabled/010:2) port 443 namevhost 011.staging.com (/etc/apache2/sites-enabled/011:2) port 443 namevhost 013.staging.com (/etc/apache2/sites-enabled/013:2) *:80 is a NameVirtualHost default server www.production.com (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost www.production.com (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost monitoring.staging.com (/etc/apache2/sites-enabled/monitoring:1) Syntax OK […]
具有一个物理IP = 10.2.2.1和逻辑IP = 10.2.2.2的Apache代理 configuration与以下类似 <VirtualHost *:80> ServerName example.com <Location /> ProxyPass http://server:8080/ ProxyPassReverse http://server:8080/ </Location> </VirtualHost> <VirtualHost *:80> ServerName example2.com <Location /> ProxyPass http://server:8081/ ProxyPassReverse http://server:8081/ </Location> </VirtualHost> <VirtualHost 10.2.2.2:443> ServerName example3.com SSLEngine on SSLCertificateFile /example3.com.cer SSLCertificateKeyFile /example3.com.key SSLCertificateChainFile /example3chain.com.cer Redirect / https://example3.com <Location /> ProxyPass http://server:8082/ ProxyPassReverse http://server:8082/ </Location> </VirtualHost> <VirtualHost 10.2.2.1:443> […]