我正在运行Apache 2.2.15(CentOS 6.6)与一个仅HTTP域 demo.xml-director.info 使用wget我可以正确地检索内容 wget -S http://demo.xml-director.info –2015-01-05 13:31:41– http://demo.xml-director.info/ Resolving demo.xml-director.info (demo.xml-director.info)… 176.9.146.28 Connecting to demo.xml-director.info (demo.xml-director.info)|176.9.146.28|:80… connected. HTTP request sent, awaiting response… HTTP/1.1 200 OK Date: Mon, 05 Jan 2015 12:31:41 GMT Server: Zope/(2.13.22, python 2.7.6, linux2) ZServer/1.1 Content-Length: 20227 Expires: Sat, 01 Jan 2000 00:00:00 GMT Content-Type: text/html;charset=utf-8 X-Ua-Compatible: IE=edge,chrome=1 Content-Language: […]
我之前已经解决了这个问题,但现在我不得不清除我的VPS,显然我不能正确地configuration东西了,所以.. 我已经build立了一个Debian VPS并在其上安装了Virtualmin,我买了一个testing域用于该VPS,并将其主DNS服务器指向我的VPS IP。我用Virtualmin为根域创build了一个虚拟服务器。 org,但是每当我打开URL,我会得到默认的虚拟主机页面,我继续删除默认的VH(不是实际的默认,只有一个Virtualmin创build),我仍然指向/ var / www而不是/ home /例如/ public_html忽略这个,我试图创build一个子域,希望至less这个会指出正确的directoy,但没有任何工作(我创build了*。example.org CNAME DNS以及所有指向example.org,那是对的吗?) 这是Virtualmin创build的VH文件: <VirtualHost 127.0.0.2:80> SuexecUserGroup "#1001" "#1001" ServerName example.org ServerAlias www.example.org ServerAlias webmail.example.org ServerAlias admin.example.org DocumentRoot /home/example/public_html ErrorLog /var/log/virtualmin/example.org_error_log CustomLog /var/log/virtualmin/example.org_access_log combined ScriptAlias /cgi-bin/ /home/example/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/example/public_html> Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All […]
假设我有一个IP地址为1.2.3.4的Web服务器。 我也有2个子域名: sth.city.eu inf.xyz.city.eu 我在Ubuntu服务器上使用Apache 2。 这是我的/etc/apache2/sites-enabled/site文件: <VirtualHost *:80> ServerName www.sth.city.eu ServerAlias sth.city.eu ServerAlias inf.xyz.city.eu ServerAlias www.inf.xyz.city.eu ServerAdmin webmaster@localhost DocumentRoot /var/www/city/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/city/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> LogLevel warn ErrorLog ${APACHE_LOG_DIR}/error_city.log CustomLog ${APACHE_LOG_DIR}/access_city.log combined </VirtualHost> 我想这样做:如果有人会去inf.xyz.city.eu ,服务器应该自动将他redirect到sth.city.eu (更改url)。 这是可能的 – […]
我们的networking操作人员已经build立了SSL终止,然后将请求反向代理给我们。 他们的要求是,如果他们看到443端口的input,我们必须在端口443上提供内容,所以我们在443端口上提供未encryption的内容。这是我们必须解决的一个不变的问题。 大多数情况下,这不是问题。 我们Listen 443 ,不要设置SSL,而且事情工作,除了…redirect。 作为一个例子,如果我们定义: Alias /foo /path/to/foo <Directory /path/to/foo> … </Directory> Apache很聪明,可以将请求redirect到/foo/ 。 当我们在端口80上使用http时,效果很好。 但是,当客户端在端口443上使用https时,我们最终得到一个redirect,其Location如下所示: Location: http://my.example.com:443/foo/ 问题是我们不想从一个安全的协议redirect到一个不安全的协议,这并不重要,因为我们不在443端口上提供不安全的内容。 我猜测有一个更好的方式告诉Apache,这个请求本来是一个安全的请求,但是我不知道Apache的configuration。 我希望我不必手动为每个Directory条目创build一个redirect,特别是因为一些内容可用安全和不安全的forms。 任何人有任何指示文件,可以帮助(不幸的是,我不能拿出正确的谷歌咒语帮助)? 最好的方式来处理这个指针也赞赏。 🙂
当我configuration使用kerberos的Apache身份validation。 它工作正常。 它是要求密码并login到网站。 它正在创build一个这样的日志信息。 /var/log/kerberos/krb5kdc.log Jul 03 15:30:03 ashokkrishna-Lenovo-B560 krb5kdc[4060](info): AS_REQ (6 etypes {18 17 16 23 25 26}) 192.168.1.224: NEEDED_PREAUTH: [email protected] for krbtgt/[email protected], Additional pre-authentication required Jul 03 15:30:03 ashokkrishna-Lenovo-B560 krb5kdc[4060](info): AS_REQ (6 etypes {18 17 16 23 25 26}) 192.168.1.224: ISSUE: authtime 1435917603, etypes {rep=18 tkt=18 ses=18}, [email protected] for krbtgt/[email protected] 但是当我打 ashokkrishna@ashokkrishna-Lenovo-B560:~$ klist […]
我正在configuration将用作反向代理的新的Nginx服务器。 我们有一个Apache和运行的Debian服务器。 在这个Apache服务器是HTTPS的唯一访问我想隐藏在代理后面的网站。 从代理到上游的连接Apache必须通过HTTPS(服务器位于不同的位置,而Apache只允许HTTPS访问)。 我的问题是从Nginx到Apache的连接失败。 通过HTTPS从浏览器到上游的正常连接没有问题。 从相同的代理连接到Nginx的上游工作。 当Nginx尝试连接上游Apache连接失败, 重新协商握手失败 从代理Nginx的日志(debugging级别)只说: 2016/04/07 15:51:08 [error] 5855#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 94.113.97.9, server: procrastination.com, request: "GET / HTTP/1.1", upstream: "https://77.240.191.234:443/", host: "procrastination.com" 从Apache上游logging: [Thu Apr 07 15:36:48 2016] [info] Initial (No.1) HTTPS request received for child 35 (server procrastination.com:443) [Thu […]
我通过执行以下操作在Ubuntu上安装了apache: sudo -i cd /usr/local/src wget http://apache.mirrors.tds.net/httpd/httpd-2.2.11.tar.gz tar -xvf httpd-2.2.11.tar.gz cd httpd-2.11.9 ./configure –enable-layout=Debian –enable-deflate –enable-proxy –enable-proxy-html –enable-proxy-http –enable-proxy-balancer –enable-rewrite –enable-cache –enable-mem-cache –enable-ssl –enable-headers –enable-mods-shared=most make make install exit 然后我通过执行以下操作来安装php5: sudo apt-get install php5 现在我有两个版本的Apache: tony@bootsy/etc/apache2 $ apachectl -v Server version: Apache/2.2.11 (Unix) Server built: May 26 2009 21:57:13 tony@bootsy/etc/apache2 $ apache2ctl -v Server version: […]
我在我的apache2 debian服务器上有几个命名的虚拟主机,我想有一个镜像服务器,只要第一台服务器出现故障,就可以立即启动。 我们可以假定我已经完全控制了两台服务器上的服务器和/ www数据,并且使用rsync定期增量同步。 我可以在DNS级别看到这样做的方法,但是我希望有一个社区的意见。 有没有解决scheme可以实现这一点? 谢谢
在一个使用PHP / Python脚本的Apache和静态文件使用lighttpd的设置中,只有一个监听外部IP地址,并作为另一个监听回送接口的代理,这应该是哪个,哪个,哪个这很重要吗?
Mem: 8176880k total, 8059736k used, 117144k free, 93040k buffers Swap: 1004052k total, 108k used, 1003944k free, 7257056k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4992 mysql 20 0 291m 115m 5380 S 65 1.4 739:54.71 mysqld 20260 apache 20 0 43032 18m 3964 S 27 0.2 0:02.50 apache2 20154 […]