我似乎无法让我的虚拟主机工作:
我将/etc/apache2/user/scottr.conf设置为:
<Directory "/Users/scottr/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
然后,将我的/etc/apache2/extra/设置为:
<VirtualHost *:80>
我正面临着一个奇怪的问题。当我通过与之相连的域访问我的服务器的可访问的目录时。上面写着:-
Not Found
The requested URL / was not found on this server.
当我在我的服务器上运行这个命令时(通过putty),它会显示很少的进程it来证明Apache服务器正在运行(更正我)。
root@...:~# pgrep apache
4733
13505
13506
13507
13508
13686
14199
17672
但是,当我运行这个命令时,它会说httpd:无法识别的服务
root@...:~# service httpd status
我正面临着一个奇怪的问题。当我通过与之相连的域访问我的服务器的可访问的目录时。上面写着:-
Not Found
The requested URL / was not found on this server.
当我在我的服务器上运行这个命令时(通过putty),它会显示很少的进程it来证明Apache服务器正在运行(更正我)。
root@...:~# pgrep apache
4733
13505
13506
13507
13508
13686
14199
17672
但是,当我运行这个命令时,它会说httpd:无法识别的服务
root@...:~# service httpd status
所以这件事让我措手不及。我认为应该区分/etc/httpd.conf和/etc/httpd.conf。预更新并更正默认的LoadModules,并包括应用升级的默认,但我有许多vhost没有很好地运行。在升级之前,所有这些都很好,并且在以下方面都失败了:
http://localhost (DocumentRoot /www works fine)
http://test (DocumentRoot /www/test serves "It works!" from the standard DocumentRoot and nothing shows in /var/log/
我正在努力让SSL与WampServer一起工作。我正在跟踪,然后我进入了这个部分:Now test your Apache installation by calling httpd -t。
此时Apache将不会重新启动。Windows错误日志有一个条目:
The Apache service named reported the following error:
>>> Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in
我有503个服务不可用的问题日志检查是:
[proxy:error] (2)No such file or directory: AH02454: FCGI: attempt to connect
to Unix domain socket /usr/local/php72/sockets/admin.sock (*) failed
[proxy_fcgi:error] AH01079: failed to make connect
ion to backend: httpd-UDS
但问题就在这里!我基本上没有admin.sock文件,我的www.conf文件是:
listen = 127
我用的是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
我正在使用Apache创建一个嵌入式OSGi主机应用程序。我使用以下代码来公开我想公开的包:
List<String> extra = new ArrayList<>();
extra.add("some.example.packag.to.expose.1");
extra.add("some.example.packag.to.expose.2");
extra.add("some.example.packag.to.expose.3");
config.put(Constants.FRAMEWORK_SYSTEMPA