我有一台服务器,我想在其他服务旁边运行GitLab。 search了一段时间后,我发现我需要做一些mod_proxy技巧来让Apache2转发请求到GitLab。 但是现在,当我尝试访问服务器上不是/ git下的GitLab URL的任何URL时,我只是得到一个错误。 我什至不能访问apaches标准的index.html页面,我明显应该。 服务器在Ubuntu 14.04 LTS下运行。 gitlab的configuration文件是: #This configuration has been tested on GitLab 6.0.0 and GitLab 6.0.1 #Note this config assumes unicorn is listening on default port 8080. #Module dependencies # mod_rewrite # mod_proxy # mod_proxy_http <VirtualHost *:80> ServerName lmmweb ServerSignature Off ProxyPreserveHost On # Ensure that encoded slashes are not […]
我试图为通过Apache 2访问的SVN存储库configuration权限。我想要的是让任何人访问根目录,同时限制authentication用户的子目录。 例: /demo /demo/project1 /demo/project1/sensitive-data # This path should require user authentication. /demo/project2 起初,我认为这很简单: <Location /demo> DAV svn SVNPath /home/svn/demo AuthType Basic AuthName demo AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> <Location /demo/project1/sensitive-data> DAV svn Require valid-user </Location> 当通过HTTP(例如CURL)使用时,Apache符合configuration:我可以访问: http://example.com/demo/ , http://example.com/demo/project1/和: http://example.com/demo/project2/ , 并且如我所料,在尝试检索http://example.com/demo/project1/sensitive-data时,得到了HTTP 401 Unauthorized 。 另一方面,做: svn […]
这里基本上是我想要做的: http请求进来后,路由器中的前端将其发送到本地networking(服务器A)中的服务器, 服务器识别虚拟主机的请求 服务器a具有该虚拟主机的重写规则,该规则重写请求以将其发送到位于同一本地networking上的服务器B 服务器B获取请求,识别虚拟主机并根据虚拟主机设置设置文档根目录 它一直运行到服务器B,请求总是以默认定义结束。 这可能吗? 我正在运行Debian Wheezy。 服务器apacheconfiguration文件/etc/apache/sites-enabled/wiki <Directory /var/lib/shared/websites/wiki/www> Options None AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> ServerName wiki ServerAlias wiki.asus.local ServerAlias wiki.mydomain.net DocumentRoot /var/lib/shared/websites/wiki/www CustomLog /var/lib/shared/websites/wiki/log/access.log combined ErrorLog /var/lib/shared/websites/wiki/log/error.log RewriteEngine on RewriteRule ^/(.*) http://192.168.10.91/$1 [P,L] </VirtualHost> 服务器B apacheconfiguration文件/etc/apache/sites-enabled/wiki <Directory /var/lib/shared/websites/wiki/www> Options None AllowOverride All Order allow,deny Allow […]
我目前正在使用AWS基础架构托pipe我的移动Web应用程序。 我使用Apache Web服务器mod_jk将请求传递给Tomcat,并使用连接池进一步与MySQL DB进行通信。 最近的服务器一直在响应缓慢。 其中一个原因是所有具有应用程序的用户在15分钟的时间间隔内随机创build一个请求(LocationUpdate)。 我相信这是减慢服务器的原因。 另外,我们也有很多用户。 我想知道如何加载平衡。 我不确定它的Apache是否无法处理这些许多Web请求。 或者是无法处理它们的Tomcat。 所以不知道该如何处理。 哪个configuration设置来确认。 我在互联网上search,但不知道如何弄清楚。 我应该增加Tomcat堆大小吗?
我有dynamicconfiguration的虚拟主机: UseCanonicalName Off <VirtualHost *:80> ServerAlias *.projects.domain.com VirtualDocumentRoot /var/www/projects/%-4 </VirtualHost> <VirtualHost *:80> ServerAlias *.testing.domain.com VirtualDocumentRoot /var/www/testing/%-4 </VirtualHost> 当我input浏览器xxx.projects.domain.com或yyy.testing.domain.com时,它工作正常但是: 它不适用于CNAMElogging。 例如: xyz.com => abc.projects.domain.com 。 如何configurationApachedynamicselect虚拟主机根据parsing的DNS名称( abc.projects.domain.com ),而不是根据HTTP HOST头( xyz.com ),而不插入xyz.com到Apacheconfiguration?
我正在linode上运行serverpilot,它安装了Ubuntu 14.4。 我需要将三个域指向同一个modx安装。 modx设置的第一个领域工作正常。 当我将第二个域添加到工作的虚拟主机也工作。 当我尝试在modx中指向第二个域到一个新的虚拟上下文时,我得到一个503错误? 有些postbuild议需要添加所有授予的需求,但是,我的main.conf文件似乎有这样的地方: <Directory ${DOCUMENT_ROOT}> AllowOverride All Require all granted RewriteRule . – </Directory> 这可能是一个服务器用户权限问题? 我用root解压缩一个文件,然后将所有权重置回用户名和chown组。 任何testing,我可以找出错误在哪里? build议最受欢迎。
我有一个WHM面板的服务器。 操作系统是CentOS。 当我在public_html中放置一个php.ini ,PHP停止读取/usr/local/lib/php.ini 。 当我比较phpinfo()的结果时,我所看到的是; error_log error_log error_log becames error_log没有值没有值 PHP如何读取主php.ini指令,除非我在本地php.ini中添加指令。 PS:COPPYING主php.ini内容到本地php.ini不是一个选项。
我通过使用repo从我的centos 6.6安装了php 5.6,apache 2.2和php-fpm https://webtatic.com/packages/php56/ 我遵循这个指令abd尝试使php-fpm工作http://www.garron.me/en/linux/apache-mpm-worker-php-fpm-mysql-centos.html 但是这个教程有些不同之处: fcgi模块的conf文件位置在/etc/httpd/conf.d/fcgid.conf中 在这样的位置没有/ var / lib / cgi-bin / php5-fcgi 在这个位置没有/var/run/php5-fpm.sock fcgid.conf # This is the Apache server configuration file for providing FastCGI support # through mod_fcgid # # Documentation is available at # http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html LoadModule fcgid_module modules/mod_fcgid.so # Use FastCGI to process .fcg .fcgi & .fpl scripts AddHandler […]
我试图按照这个几个不同的教程,但不能完全得到它的工作。 我的路由53中有我的域名(example.com)的所有DNS。工作正常。 我的顶级域名(Alogging)指向我的负载均衡器(AWS)作为别名。 这指向一个EC2服务器,工作正常。 我想添加一个子域(client.example.com),但我不太确定在哪里添加这个以及我需要什么types的logging。 我希望这个指向同一个EC2服务器上的一个目录作为我的顶级域名(这将有pathexample.com/client)。 我不希望它redirect,只是从这个目录提供的文件。 不知道是否需要创build一个新的托pipe区域,什么放在区域,指向什么,如果我需要修改我的服务器上的任何东西(如rewriterule)。 任何方向将不胜感激。
我遇到了Apache的一些奇怪的行为。 我有几个虚拟主机设置在我的本地机器上。 我目前正在经历这一点的鬼魂,因为我正在不断开发工作,但是我认为它也发生在另一个本地网站上。 以下是最新消息: 我去nekst.local和页面加载罚款。 我不断刷新页面来检查我的更新代码。 突然之间,我在控制台中得到了所有资产的403错误,但页面加载(减去资产)。 如果我再次刷新,我在浏览器中得到403错误,而不是页面加载。 如果我重新启动apache,一切正常,然后突然又发生了。 我最近下载了xdebug,并添加到我的php.ini。 我不确定这是否会导致任何问题。 我在osx优胜美地上运行apache 2.4.9,php 5.5.14 我的虚拟主机: <Directory "/Users/shawn/Documents/work/sites/mindbox/nekst/webapp/web"> Require all granted AllowOverride All </Directory> <VirtualHost *:80> DocumentRoot "/Users/shawn/Documents/work/sites/mindbox/nekst/webapp/web" ServerName nekst.local ErrorLog "/Users/shawn/Documents/work/sites/mindbox/nekst/webapp/app/logs/error_log" CustomLog "/Users/shawn/Documents/work/sites/mindbox/nekst/webapp/app/logs/access_log" common </VirtualHost> 和我的主angular: drwxr-xr-x 15 shawn staff 510 Jan 27 10:25 web