我目前正在我的UbuntuServer14.04上设置Gitlab。安装Gitlab之后,禁用Nginx并为apache2设置虚拟主机--接口实际上加载--但是其中一个资产文件(主Javascript文件)抛出一个代理错误并返回502状态。
error.log说:
[Tue Jan 27 14:25:10.198423 2015] [proxy_http:error] [pid 26941] (20014)Internal error: [client 155.56.40.102:60125] AH01102: error reading status line from remote ser
在我的开发工作站(实际上包含在/etc/apache2/ apache.conf /andrew.conf)中,我有以下内容:
<Directory "/Users/andrew/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /Users/andrew/Sites/mysite/public
Server
你认为什么能解决我的问题?
user@admin:~$ sudo service apache2 restart
sudo: unable to resolve host admin
* Restarting web server apache2
AH00548: NameVirtualHost has no effect and will be removed in the next release
/etc/apache2/ports.conf:8
在设置WAMPserver之后,我的Apache localhost站点可以在IE、Chrome和Firefox上正确加载。然而,在创建虚拟主机(在本例中为bssb.dev)之后,Chrome和火狐无法检索页面(错误如下所示)。但是,IE会成功加载。即使在创建了虚拟主机之后,这三个浏览器仍然可以成功地加载localhost。
Chrome Error: This site can’t be reached. bssb.dev refused to connect
Firefox Error: Unable to connect. Firefox can’t establish a conn
下面是我的Apache2.0 error_log中的几行代码
[Sun Nov 25 08:22:04 2012] [error] [client 64.34.195.190] File does not exist: /var/www/vhosts/default/htdocs/admin
[Sun Nov 25 14:14:32 2012] [error] [client 96.254.171.2] File does not exist: /var/www/vhosts/default/htdocs/azenv.php
[Wed Nov 28 03:02:01 2012] [error]
我用的是Yosemite和Apache 2.4
/private/etc/apache2/httpd.conf
ServerName 127.0.0.1:80
DocumentRoot "/Library/WebServer/Documents/"
<Directory "/Library/WebServer/Documents">
Options Multiviews FollowSymLinks
MultiviewsMatch Any
AllowOverride All
Order allow,deny
A