Articles of apache 2.2

RewriteEngine追加/%25 /到我的目录http-> https

我有我的configuration文件设置如下所示: <VirtualHost *:80> RewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://example.com/%$1 [R,L] </VirtualHost> <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /ssd/www/ SSLEngine on SSLCertificateFile /ssd/certs/example_com.crt SSLCertificateKeyFile /ssd/certs/example_com.key SSLCertificateChainFile /ssd/certs/example_com.ca-bundle ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 问题是,当它redirect时浏览到一个标准的HTTP页面附加/%25/到域,所以例如.. http://example.com更改为https://example.com/%25/更改为https://example.com/%25/my-category/my-page 。

使用多个域自动将httpredirect到https – 从代码内引用的文件

我知道这里和这里有重复的问题,但这些还没有解决我的问题。 当在浏览器的url栏中键入localhost时,它将被正确地redirect到https://localhost ,但是在我的代码中用于加载具有http文件的所有调用都不会被redirect或重写为https 。 例如: <link rel="stylesheet" type="text/css" href="http://static/css/colwidth.min.css"> 我已经尝试在VirtualHost部分的Apacheconfiguration文件中Redirect permanent / https://localhost/ ,我也尝试使用.htaccess RewriteRule 我得到的Firefox错误是: 阻止加载混合活动内容“ http://static/css/colwidth.min.css ” 我将不胜感激帮助理解如何做到这一点与Apacheconfiguration和.htaccess (我知道.htaccess不是首选的方法 – 但我仍然想明白为什么它不工作) HTTP: <VirtualHost *:80> ServerAdmin me@localhost DocumentRoot "D:/Website/path/to/root" ServerName localhost Redirect permanent / https://localhost/ <Directory "D:/Website/path/to/root"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require ip 127.0.0.1 </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin me@localhost DocumentRoot […]

共享Web服务器之间的svn reposities

我有我的颠覆主机设置为通过Apache Web服务器访问。 一切运行良好。 现在我想添加另一个Web服务器来分配两个Web服务器之间的负载。 是否可以同时保存两个Web服务器访问我的svn存储库? 正常的FSFS Subversion存储库types是否足够保护我,或者我需要切换到Berkely DB这种事情?

CentOS上的Apache可以在位于文档根目录树之外的Subversion版本库中使用吗?

如果是这样,怎么样? 这与问题43805有关 。 如果repo被正确地chmod但在文档根目录树之外,Apache抱怨它不能访问repo根目录下的format文件。 如果回购是在文档根目录树中的某处,一切正常。

Apache反向代理多个URI

当使用Apache来反向代理,是否有可能转发http://somesite.com/和http://somesite.com/foo到不同的服务器? 说一个去http:// internalserver1 /和另一个去http:// internalserver2 / foo 我显然可以进一步下降path(即http:// somesite / bar ),但它不可取。

好的Apache的书为Ubuntu的服务器新手

我正在让自己进入Linuxpipe理,并想知道是否有人有任何好的build议,有关Apache的书籍。 pipe理,configuration,mod_rewrite等 我search亚马逊阿帕奇和大部分的书籍是从2004年或2002年。 那么那里有好书吗? 谢谢 PS:我有Apache 2.2.11

如何通过端口80从多个Web服务器(appache,twisted)提供内容?

我的问题涉及到我以前的问题,但是我意识到我以前的问题是不正确的。 我正在使用托pipe服务,因此我无法访问root(仅用户帐户),而我的Apache Web服务器是在端口80上运行的虚拟主机。DocumentRoot是http://build.website.org ,它是在/ home / myname /build.website.org/文件系统上。 我想运行多个buildbot主人并显示项目project1 , project2等的生成结果在http://build.website.org/project1/,http://build.website.org/project2/等。 我build立了我的第一个使用扭曲的Web服务器端口8010 buildbot主,并可以通过访问http://build.website.org:8010访问内容,但我不知道如何使内容在http:/ / /build.website.org:8010可见http://build.website.org/project1/ 所以,我想知道是否有一个独特的扭曲的服务器为每个主人是有道理的? 而且,我应该如何使http://build.website.org:801N可见http://build.website.org/projectN/ (如果这是正确的方式去做这个)? 抱歉,我对networkingpipe理员问题很陌生,需要非常详细的帮助。

如何dynamic创build子域名?

我希望能够使用脚本语言(如PHP,Python,Perl或其他)来dynamic创build和删除子域名。 我使用Apache作为Web服务器 例: http://subdomain.example.com http://subdomain2.example.com 谢谢

我如何设置Apache的子域?

我搜查了这个网站,找不到我的简单问题的答案。 我在Red Hat Enterprise Linux 4(x86_64)上设置了apache2,php 5和mysql 5.1。 目前,我设置了http://mysite.company.com指向我们的网站的生产版本。 我想要做的是设置http://dev.mysite.company.com指向我们的开发环境。 我试图这样: $ cat /usr/local/apache2/conf/http.conf … NameVirtualHost *:80 <VirtualHost *:80> ServerName mysite.company.com DocumentRoot "/var/www" </VirtualHost> <VirtualHost *:80> ServerName dev.mysite.company.com DocumentRoot "/var/wwwdev" </VirtualHost> … 现在, http://mysite.company.com正常工作,但未findhttp://dev.mysite.company.com 。 我应该与IT人员交谈,将dev.mysite.company.com添加到他们的DNS查找表中吗? 我在这里做错了什么? 你的帮助表示赞赏。 谢谢。

是phpinfo(或类似)没有访问可能?

有没有办法知道Apache版本,PHP版本和PHP库等是否可用于网站,而无法访问服务器。 我正在寻找像phpinfo,但没有访问说。 如果不可能,下一个最好的事情是什么? 我听说可以使用标题,但不知道如何。 谢谢