apache2

Reverse proxy with websocket mod_proxy_wstunnel

▼魔方 西西 提交于 2020-01-10 18:44:18
问题 I have a problem with the web sockets and my reverse proxy Apache, I have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel . The httpd.conf : <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.toto.fr ServerAlias toto.fr ProxyPass /my_app http://1X.X.X.1:8080/my_app ProxyPassReverse /web_pmr http://1X.X.X.1:8080/my_app ProxyPassReverseCookiePath /my_app / ProxyPassReverseCookieDomain localhost my_app ProxyRequests off ProxyTimeout 15 #WEBSOCKETS

Could not reliably determine the server's fully qualified domain name

一世执手 提交于 2020-01-09 06:00:49
问题 I have just installed Apache 2.2.17, and I am using it first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set. How can I fix this problem? 回答1: Yes, you should set ServerName: http://wiki.apache.org/httpd

Redirecting domain names to the same domain?

人盡茶涼 提交于 2020-01-07 05:26:06
问题 I want to redirect the following domain names :haloservers.net,haloservers.nl and servers.xgclan.com to the domain name www.haloservers.us I tried putting the code below in the htaccesses file but this didn't work. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.?)haloservers.net$ RewriteRule ^(.*)$ http://www.haloservers.us/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(www\.?)haloservers.nl$ RewriteRule ^(.*)$ http://www.haloservers.us/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(servers\.)xgclan.com$

Apache2 not working with routes PHP

Deadly 提交于 2020-01-07 01:22:34
问题 I am developing an app with PHP 7.0 and implementing routes with MVC. My root folder ('/') is the 'public' directory. When I access the address 'localhost' I am redirected to index.php with have the routes available. But when I try another url to access another route, like 'localhost/contact' the server doesn't find the entry and give this message: Not Found The requested URL /contact was not found on this server. I am pretty sure that the problem in on my server config (apache2 on linux mint

Apache2 not working with routes PHP

亡梦爱人 提交于 2020-01-07 01:21:20
问题 I am developing an app with PHP 7.0 and implementing routes with MVC. My root folder ('/') is the 'public' directory. When I access the address 'localhost' I am redirected to index.php with have the routes available. But when I try another url to access another route, like 'localhost/contact' the server doesn't find the entry and give this message: Not Found The requested URL /contact was not found on this server. I am pretty sure that the problem in on my server config (apache2 on linux mint

Can't upload file to Apache 2.2

◇◆丶佛笑我妖孽 提交于 2020-01-06 20:11:32
问题 Apache/2.2.15 (Win32) PHP/5.3.2 I'm trying to upload a file to Apache and my PHP script tells me everything goes well (status code 0), but the file is not in the temp directory. The PHP answer is always coming immediately, regardless of the file size. The PHP Error log doesn't show any errors at all. The Apache server is running on its own user account with full access to the log and doc folders. PHP.ini file_uploads = On upload_tmp_dir = upload_max_filesize = 10M upload_tmp_dir="C:\WINDOWS

wordpress security and xmlrpc.php

倾然丶 夕夏残阳落幕 提交于 2020-01-06 08:46:12
问题 Looking through my site stats I'm noticing a bunch of hits on my wordpress/xmlrpc.php file. It's not from me afaik, do I need to worry about something here, is there anyway to secure this? I'm running multiple wordpress sites on the same apache2, and it's only one of them that this is happening to. 回答1: If you don't use the xmlrpc interface (pingbacks or blogging from external sources like android/iPhone), you can turn off this feature. Settings -> Writing -> XML-RPC 回答2: I installed "Windows

Apache/PHP: Anyway to retrieve the ServerName setting via PHP

心已入冬 提交于 2020-01-06 08:19:28
问题 I have an Apache virtual host that looks like this: <VirtualHost *:80> ServerName host1.example.com ServerAlias host2.example.com DocumentRoot /srv/web/host1.example.com/pub </VirtualHost> I have the following file: /srv/web/host1.example.com/pub/test.php I am requesting the following URL (notice that I am using the ServerAlias , not the ServerName : http://host2.example.com/test.php I'd like to have test.php output the ServerName variable somehow ( host1.example.com ). Is there any way to do

Symfony does not detect relative url root

不羁岁月 提交于 2020-01-06 07:05:08
问题 In symfony 1.4 in settings.yml we are using the option: env: request: param: relative_url_root: /name-of-app to specify which relative_url_root an app uses. So every app runs under a different relative_url_root. The problem is that symfony 1.4 routing does not detect this relative url root. So for example if we have the following route: route_name: url: /some-module/some-action param: { module: somemodule, action: someaction } And we try to access http://myproject.local/name-of-app/some

Symfony does not detect relative url root

北城余情 提交于 2020-01-06 07:04:25
问题 In symfony 1.4 in settings.yml we are using the option: env: request: param: relative_url_root: /name-of-app to specify which relative_url_root an app uses. So every app runs under a different relative_url_root. The problem is that symfony 1.4 routing does not detect this relative url root. So for example if we have the following route: route_name: url: /some-module/some-action param: { module: somemodule, action: someaction } And we try to access http://myproject.local/name-of-app/some