Apache FAQ

redirect port proxy apache ServerName domain name

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName on Xubuntu

Symptom

You get this error message when starting apache:

* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Fix

Open a terminal window and run:

sudo sh -c 'echo "ServerName localhost" >> /etc/apache2/conf.d/name' && sudo service apache2 restart

Не работает apache2 редирект с хост машины на определенный порт гостевой машины.
Пишет:

|Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.Apache/2.2.22 (Ubuntu) Server at rs.peterlee.com.cn Port 80

|
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

В логах:
[warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

Solution:

sudo a2enmod proxy proxy_balancer proxy_http