THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Uncomment (or compile with at least these modules using --enable or on Debian/Ubuntu use a2enmod)
Code Block |
---|
#LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule ssl_module modules/mod_ssl.so |
...
Code Block |
---|
ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow Allow from all </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off \| On \| Full \| Block ProxyVia On NameVirtualHost *:80 <VirtualHost *:80> # General setup for the virtual host DocumentRoot "/usr/local/apache2/htdocs" ErrorLog "/usr/local/apache2/logs/error_log" TransferLog "/usr/local/apache2/logs/access_log" ServerName lamoulinewww.myvncexample.com:443 ServerAdmin webmaster@les7artsyou@example.com ProxyRequests Off ProxyPreserveHost On proxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 </VirtualHost> include conf/httpd-ssl.conf |
In httpd-ssl.conf
replace (accordingly to your setup, ie. keeping the right pathes)
Code Block |
---|
<VirtualHost _default_:443> # General setup for the virtual host DocumentRoot "/usr/local/apache2/htdocs" ServerName www.example.com:443 ServerAdmin you@example.com ErrorLog "/usr/local/apache2/logs/error_log" TransferLog "/usr/local/apache2/logs/access_log" |
...
Code Block |
---|
<VirtualHost *:443> # General setup for the virtual host DocumentRoot "/usr/local/apache2/htdocs" ErrorLog "/usr/local/apache2/logs/error_log" TransferLog "/usr/local/apache2/logs/access_log" ServerName lamoulinewww.myvncexample.com:443 ServerAdmin webmaster@les7artsyou@example.com ProxyRequests Off ProxyPreserveHost On proxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 |
...