Articles of virtualhost

针对Lighttpd上的多个主机的SNI

inheritancelighttpd服务器,我有点无知。 尝试使用SNI安装第三个SSL证书而不使用其他IP。 目前,lighttpd.conf中的SSLconfiguration如下所示: $SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/etc/ssl/private/domain1.com.pem" ssl.ca-file = "/etc/ssl/private/chain.cer" $HTTP["host"] == "domain2.com" { ssl.pemfile = "/etc/ssl/private/domain2.com.pem" ssl.ca-file = "/etc/ssl/private/chain.cer" } } 尝试添加第三个证书,如下所示: $SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/etc/ssl/private/domain1.com.pem" ssl.ca-file = "/etc/ssl/private/chain.cer" $HTTP["host"] == "domain2.com" { ssl.pemfile = "/etc/ssl/private/domain2.com.pem" ssl.ca-file = "/etc/ssl/private/chain.cer" } $HTTP["host"] == […]

Apache LocationMatch不匹配

我试图设置请求限制某些敏感的URI在apache(v2.2)虚拟主机与mod_security ,但find使用LocationMatch麻烦。 到目前为止,configuration如下: <VirtualHost *:80> ServerName www.example.com RewriteEngine On DocumentRoot "/var/www/html/www.example.com" <Directory "/var/www/html/www.example.com"> Options None AllowOverride None Order allow,deny Allow from all </Directory> SecRuleEngine On # ignore requests from localhost or some other IP SecRule REMOTE_ADDR "^127\.0\.0\.2$" "phase:1,id:'1',nolog,allow" <LocationMatch "^\/RESTv2\/auth\..+"> SecRule REQUEST_FILENAME ".*" "phase:1,nolog,pass,initcol:ip=%{REMOTE_ADDR},setvar:ip.requests.auth=+1,id:'3',expirevar:ip.requests.auth=1" SecRule ip:requests.auth "@gt 2" "phase:1,pass,log,logdata:'blocking auth %{REMOTE_ADDR} req/sec: %{ip.requests}',setvar:ip.block.auth=1,expirevar:ip.block.auth=5,id:'4'" SecRule ip:block.auth […]

非永久性文件夹的Apache vhostsconfiguration

好的,标题可能有点混乱。 我有一个TrueCrypt容器作为新的驱动器X:在我的Windows机器上。 现在我想让我的本地testingApache通过http://x.localhost传递文件: <VirtualHost *:80> DocumentRoot "X:/htdocs" ServerName x.localhost <Directory "X:/htdocs"> Order allow,deny Allow from all </Directory> </VirtualHost> 到现在为止还挺好。 当安装TrueCrypt容器时,一切正常。 我的问题开始时,没有驱动器'X:' (这不幸的是常规的情况下)。 然后,Apache拒绝启动,因为它抱怨缺lessDocumentRoot文件夹和<Directory>指令。 是否有可能实现一些精明的开关,以便即使没有驱动器X:存在,Apache也会启动?

JRUN吃100%的CPU

我们有一个服务器与以下规格: 英特尔双核,4GB。 我们在同一台服务器上运行MainEnable,Coldfusion,PHP,ASP和Mysql。 我们有大约500个以上的邮件帐户邮件启用。 我们有大约91个域名。 我需要找出单个计算机的域名限制,以及多less是太多,所以我可以孤立的问题,找出是什么原因JRUN吃100%的CPU。

使用syslog-ng远程logging多个Apache虚拟主机

我正在运行一些Apache Web服务器,每个服务器上都有4-8个独立的虚拟主机。 我试图设置专用的日志服务器,将每个虚拟主机访问和错误日​​志存储在该虚拟主机的单独目录中。 例如在日志服务器上, /var/log/remove/10.0.0.2/virtualhost1包含access_log和error_log /var/log/remove/10.0.0.2/virtualhost2包含access_log和error_log /var/log/remove/10.0.0.3/virtualhost3包含access_log和error_log 等等… 现在,我已经分裂了主机,但我不知道如何做到另外通过虚拟主机。 以下是日志logging服务器的syslog-ng.conf中的相关行 源r_src {tcp(ip(“0.0.0.0”)port(5140)); }; 目的地r_all {文件(“/ opt / splunk / logs / $ HOST”); }; log {source(r_src); 目的地(r_all); }; 任何帮助,将不胜感激。 谢谢!

在Ubuntu上使用LAMP开发本地Zend应用程序 – 虚拟主机configuration

我有几个ZF项目正在运行或closures,直到今天,我总是直接在远程服务器上工作。 我想在开发过程中切换到本地环境,所以我想知道是否有人愿意与我分享一些我们应该应用于这种情况的虚拟主机configuration? 重点将是有: www / myproject1文件夹指向: http:// myproject1 / www / myproject2文件夹指向: http:// myproject2 / www / myproject3文件夹指向: http:// myproject3 / 请帮忙吗? ps- 我看到很多例子,但是当我把Zend添加到查询中时,我似乎遇到了麻烦。 非常感谢, MEM

apache的虚拟/默认页面

我试图为我的apache2设置默认页面,以下情况: 用户正在访问http:// IP地址而不是主机名 请求的协议(HTTP / HTTPS)不可用(例如,只有http://domain.com存在) 目前我有这样的事情 <VirtualHost eserver:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/local/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> </VirtualHost> 我认为,它运作良好,我试图为HTTPS做类似的事情,但它不工作。 <VirtualHost eserver:443> SSLCertificateKeyFile /etc/apache2/ssl/dummy.key SSLCertificateFile /etc/apache2/ssl/dummy.crt SSLProtocol all SSLCipherSuite HIGH:MEDIUM ErrorLog /var/log/apache2/error.log DocumentRoot /var/www/local/ # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn ServerSignature Off </VirtualHost> 我的默认值是作为第一个000-默认的启用网站的地方 […]

为多个虚拟主机设置httpd-vhosts.conf

我有一个简单的testing设置,在家里使用xampp,当我试图在这个盒子上设置多个虚拟主机时,我感到非常奇怪的行为。 这是我的虚拟主机文件: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin [email protected] ServerName foo DocumentRoot "D:\wamp\xampp\htdocs\foo" ErrorLog logs/foo-error_log CustomLog logs/foo-access_log common <Directory "D:\wamp\xampp\htdocs\foo"> Options Indexes FollowSymLinks Includes execCGI AllowOverride All Order Allow,Deny Allow From All </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] ServerName bar DocumentRoot "D:\wamp\xampp\htdocs\bar" ErrorLog logs/bar-error_log CustomLog logs/bar-access_log common <Directory "D:\wamp\xampp\htdocs\bar"> Options Indexes FollowSymLinks Includes execCGI AllowOverride All […]

为具有多个虚拟主机的服务器上的单SSL虚拟主机启用Shibboleth

我们有一台RHEL 5.5服务器在生产中,有几个NameBasedVirtual主机在端口80上侦听。 我们还有两个(可能是错误configuration的)SSL虚拟主机,它们使用Apache和SSL协议要求的不同套接字: https://redcap-test.xyz.org https://jira.xyz.org 我试图shibbolize只有https://redcap-test.xyz.org 。 在安装shibboleth 2.0并configurationtesting身份提供者后,Shibboleth似乎在https://redcap.xyz.org上工作。 不幸的是,当我打到https://jira.xyz.org它也试图使用shibboleth并引发错误。 请注意,使用这个configurationjira.xyz.org和redcap-test.xyz.org工作正常,直到我安装shibboleth。 有没有一个明显的地方,以每个虚拟主机的基础上启用或禁用shibboleth? 有没有人在我的虚拟主机中看到任何明显的错误,在这里可用: http://pastebin.com/M8175j51 或者我的shibbolethconfiguration: http://pastebin.com/PwwTp7Xw 编辑1:我想也许我可以指定是否使用Shibboleth或不使用AuthType派生…仍然在寻找这方面的文档。

OS X Apache为/ api目录中的任何内容提供503错误

我有一个使用Smarty模板的本地托pipe网站,我正在尝试开始为该网站构buildAPI。 我已经使用virtualhost.sh为这个和其他网站创build一个本地虚拟主机。 我发现如果我把一个名为api的目录放在这些虚拟主机的根目录下,当我尝试访问里面的任何东西的时候,我会得到一个503错误。 我正在使用mod重写,但到目前为止只在需要时附加.php扩展名。 以下是请求的错误日志: [Thu Feb 09 13:42:37 2012] [error] proxy: HTTP: disabled connection for (localhost) [Thu Feb 09 13:49:06 2012] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:8080 (localhost) failed [Thu Feb 09 13:49:06 2012] [error] ap_proxy_connect_backend disabling worker for (localhost) 中间一行给了我一个线索来查看我的主机文件,因为为什么会请求到[fe80::1]:8080 ? 我注意到这一行,并再次尝试,这次错误是在连接到标准的127.0.0.1 localhost 。 我已经得出结论,也许有一些configuration文件拿起localhost/api的底层请求,并指出它的地方比我的虚拟主机。 在这一点上,我解决问题的能力使我失望。 谁能帮忙?