Articles of apache 2.2

GIT与subgit和Apache的SVN

我已经开始评估一个名为subgit的软件,它可以无缝地与SVN或GIT进行回购。 在我们的整个组织中,我们使用apache来接口我们的回购,并试图将其与GIT结合起来变得有些麻烦。 总体而言,我们希望允许读取访问而不进行身份validation,并且写入应该通过身份validation,这与SVN正常工作,但似乎不像GIT那样简单。 除此之外,使用apache来识别是否是GIT / SVN请求,并找出客户端的位置,这样就可以使用相同的URL,而不pipe您使用的是什么回购系统。 下面是configuration,现在我们已经有适当的读访问没有身份validation的SVN和写访问与身份validation,但对于GIT它是R / W没有身份validation。 <VirtualHost *:80> DocumentRoot /home/subgit/public_html CustomLog /home/subgit/logs/access_log combined SetEnv GIT_PROJECT_ROOT /home/subgit/repos/repo/ SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER $REDIRECT_REMOTE_USER ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ <LocationMatch "^/git/.*/git-receive-pack$"> Options +ExecCGI AuthType Basic AuthName "subgit" AuthBasicProvider file AuthUserFile /home/subgit/etc/subgit Require valid-user Allow From All </LocationMatch> <LocationMatch "/svn"> DAV svn SvnPath /home/subgit/repos/repo AuthType Basic AuthName "subgit" […]

Zend 1与Ubuntu的MSSQL不工作

有谁知道如何解决以下问题? 如果没有,有没有人知道如何在Linux上设置Zend 1与MSSQL服务器通信? 尝试使用freetds和pdo_dblib适配器时,我们在nginx日志中得到以下错误。 我们使用nginx 1.2.7在Ubuntu 12.04上运行Zend 1.2 2013/02/27 20:48:24 [error] 9057#0: *28 FastCGI sent in stderr: "PHP message: PHP Warning: include_once(Zend/Db/Adapter/Pdo/Dblib.php): failed to open stream: No such file or directory in /www/development/library/Zend/Loader.php on line 146 PHP message: PHP Warning: include_once(): Failed opening 'Zend/Db/Adapter/Pdo/Dblib.php' for inclusion (include_path='/www/development/application/../library:/www/development/library:.:/usr/share/php:/usr/share/pear') in /www/development/library/Zend/Loader.php on line 146 PHP message: PHP […]

在linux apache服务器上设置多个站点

我知道如何设置Apache服务器并获得多个网站的工作,但这个问题更多的是最佳实践。 基本上我有一个VPS运行的Ubuntu服务器,我期待从这个运行多个网站。 我想要做的是在主文件夹中设置每个帐户的目录,但是使我的sites帐户能够在每个文件夹中创build,修改和删除文件,而不必使用root权限。 这是可能的,如果是的话,这是一个可以接受的方式来设置我的环境。

WSGI / APACHE – “ImportError:No module named site”

我正在尝试使用WSGI来启动并运行一个django网站。 这个盒子用python 2.6运行centos 5。 我试图使用安装在/ usr / local / lib / anaconda /中的连续分析的anaconda分发。 我build立了mod_wsgi ./configure –with-python = / usr / local / lib / anaconda / bin / python / 我将以下内容添加到/etc/httpd/conf/httpd.conf中: <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> #wsgi-scripts WSGIPythonHome /usr/local/lib/anaconda/bin WSGIScriptAlias /test /var/www/wsgi-scripts/test <Directory "/var/www/wsgi-scripts"> Order allow,deny Allow from […]

并不是所有的.htaccess文件都被读取

我已经使用MAMP和Ubuntu服务器多年,但最近尝试在Mac OS X 10.7.5上使用内置的Apache服务器。 我的问题是我的一些.htaccess文件正在阅读,有些则没有。 我有2个网站,这里是他们的虚拟主机设置: <VirtualHost *:80> ServerName site1.rob DocumentRoot /Users/username/Sites/localSites/site1/public/ <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName site2.rob DocumentRoot /Users/username/Documents/Dropbox/site2/public/ <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> 网站1工作,因为它应该,但网站2没有。 所以我跑了一个testing。 在每个.htaccess文件中,我做了一个环境检查。 SetEnv HTACCESS on 然后,我用这个检查在根中创build了一个PHP文件。 […]

日志/转储响应正文

有没有办法在Apache 2中logging响应主体? 我需要将被发送到用户浏览器的确切内容。 我尝试了mod_security审计日志logging,但它不会logging所有请求的响应正文。 (我真的很困惑,它logging了在一个目录中请求一个简单的PHP页面的响应主体,但是它不会在另一个目录中logging另一个文件的响应主体,它只logging响应和请求头。 更新:这里是主configuration文件(httpd.conf)中的mod_securityconfiguration: SecAuditEngine On SecRuleEngine On SecRequestBodyAccess On SecResponseBodyAccess On SecAuditLogParts ABCDEFGHZ SecAuditLog logs/sec.log

Apache Proxying安装程序

我有一个情景如下: 我有一个DNS入口的url,例如http://example.com当用户inputhttp://example.com/portal ,他登陆Apache(2.2)Web服务器(比如AWS 1)。 在那里,我有一个虚拟主机条目代理请求到另一个Apachenetworking服务器(比如AWS 2)在局域网上运行,说IP 192.168.1.1使用反向代理。 然后, 192.168.1.1上的Apache Web服务器使用反向代理将请求转发到JBoss应用服务器。 这样做,生成页面的URL将更改为LAN IP https:\\192.168.1.2\portal 。 我希望原始URL完整无缺,因为外部用户的系统不知道192.168.1.2是什么。 这是我的第一个问题。 如果不是自明的,请耐心等待。 以下是AWS 1的vhost文件片段: <VirtualHost 192.168.10.179:80> ServerAdmin [email protected] DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs" ServerName example ServerAlias example ErrorLog "logs/example-error.log" # use always https Redirect pernament / https://example.com/ </VirtualHost> 以下是AWS 1的ssl文件(不是完整configuration)的片段: <VirtualHost 192.168.10.179:443> ServerAdmin [email protected] DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs" ServerName […]

如何configurationmunin在单个服务器上显示虚拟主机的单独graphics?

我有一台虚拟主机的机器。 如何通过虚拟主机configurationmunin和munin-node分解networkingstream量/带宽? 即vhost1.example.com,vhost2.example.com,其中两个都在具有相同IP地址的机器上。

NGINX和OpenStack Horizo​​n?

我最近更新我们的networking基础设施,以使用NGINX,而不是我们的Apache服务器。 现在,我也在运行一个OpenStack基础架构,我想知道是否有一种最先进的方式来替代Apache / Mod_wsgi与任何NGinx / uwsgi体系结构或其他。 因此,如果您使用NGINX而不是Apache来运行任何OpenStack云基础架构,那么任何提示和技巧,甚至PRO / CONS技巧都将非常值得欣赏。 非常感谢!! PS:哦,顺便说一下,我正在Debian 7.0上运行一个ESSEX堆栈

限制使用Apache指定MIMEtypes

我有一个项目,我想扼杀指定MIMEtypes的速度,这些MIMEtypes如下: 应用程序/ x-rar-compressed .zip 应用程序/ zip .rar 所以我的问题是直截了当的,是否有可能扼杀Apache中的指定MIMEtypes? 如果是这种情况,我该如何去做,并做到这一点。