| | 255 | - Modify the VirtualHost |
| | 256 | |
| | 257 | {{{ |
| | 258 | vi /etc/apache2/sites-enabled/plumi |
| | 259 | }}} |
| | 260 | |
| | 261 | Modify the section about plumi.domainepublic.net |
| | 262 | |
| | 263 | {{{ |
| | 264 | <VirtualHost 91.121.123.116:80> |
| | 265 | ServerName plumi.domainepublic.net |
| | 266 | ServerAdmin info@domainepublic.net |
| | 267 | DocumentRoot /var/www |
| | 268 | DirectoryIndex index.html index.htm index.shtml index.cgi index.php |
| | 269 | |
| | 270 | |
| | 271 | |
| | 272 | RewriteEngine On |
| | 273 | RewriteRule ^/(.*)$ http://plumi.domainepublic.net:8080/VirtualHostBase/http/plumi.domainepublic.net:80/test/VirtualHostRoot/$1 [L,P] |
| | 274 | ErrorLog /var/log/apache2/plumi.log |
| | 275 | LogLevel warn |
| | 276 | CustomLog /var/log/apache2/plumi.log combined |
| | 277 | <IfModule mod_proxy.c> |
| | 278 | ProxyVia On |
| | 279 | |
| | 280 | # prevent the webserver from beeing used as proxy |
| | 281 | <LocationMatch "^[^/]"> |
| | 282 | Deny from all |
| | 283 | </LocationMatch> |
| | 284 | </IfModule> |
| | 285 | |
| | 286 | |
| | 287 | # caching (disabled) |
| | 288 | # this caches every file with the correct caching informations starting at / |
| | 289 | <IfModule mod_disk_cache.c> |
| | 290 | #CacheEnable disk / |
| | 291 | </IfModule> |
| | 292 | |
| | 293 | # compression (disabled) |
| | 294 | <IfModule mod_deflate.c> |
| | 295 | #SetOutputFilter DEFLATE |
| | 296 | </IfModule> |
| | 297 | |
| | 298 | </VirtualHost> |
| | 299 | |
| | 300 | }}} |
| | 301 | |
| | 302 | Reload apache2 |
| | 303 | |
| | 304 | {{{ |
| | 305 | /etc/init.d/apache2 force-reload |
| | 306 | }}} |
| | 307 | |