<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.cloudroom.com ServerName www.cr.cm ServerAlias www.cloudroom.com ServerAlias www.cr.cm ServerAlias s10.cloudroom.com SetEnvIf Request_URI "/blog/*" no-jk SetEnvIf Request_URI "/wordpress/*" no-jk SetEnvIf Request_URI "/Update/*" no-jk SetEnvIf Request_URI "/dl/*" no-jk ErrorDocument 404 /404.html #ProxyPass /blog http://s10.cloudroom.com/blog ProxyPreserveHost on #ProxyPass /blog http://s10.cloudroom.com/blog/ #ProxyPassReverse /blog http://s10.cloudroom.com/blog/ RewriteEngine on SetEnvIfNoCase Request_URI "^/__agent__/([^/]+)/(.*)$" X-Cloudroom-Agent-Domain=$1 RequestHeader set Host %{X-Cloudroom-Agent-Domain}e env=X-Cloudroom-Agent-Domain RewriteRule ^/__agent__/([^/]+)/(.*) /$2 [PT] # 0 ~ 9 #RewriteLogLevel 5 #RewriteLog "/var/log/apache2/www.agent.com-rewrite.log" RewriteCond %{HTTP_HOST} ^cloudroom.com [NC] RewriteRule ^(.*)$ http://www.cloudroom.com$1 [L,R=301] RewriteCond %{HTTP_HOST} ^cr.cm [NC] RewriteRule ^(.*)$ http://www.cr.cm$1 [L,R=301] </VirtualHost>
<VirtualHost *:8080> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> # # Directives to allow use of AWStats as a CGI # Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" Alias /awstatscss "/usr/local/awstats/wwwroot/css/" Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/" ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" # # This is to permit URL access to scripts/files in AWStats directory. # <Directory "/usr/local/awstats/wwwroot"> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AllowOverride None Order allow,deny Allow from all </Directory> Alias /mobile/ "/home/crproj/MobileClient/" <Directory /home/crproj/MobileClient/> Options Indexes FollowSymLinks MultiViews CheckSpelling on AllowOverride None Order allow,deny allow from all </Directory> Alias /Update/ "/home/crproj/ClientUpdate/" <Directory /home/crproj/ClientUpdate/> Options Indexes FollowSymLinks MultiViews CheckSpelling off AllowOverride None Order allow,deny allow from all </Directory> Alias /zabbix "/var/www/zabbix" <Directory /var/www/zabbix> # Options Indexes FollowSymLinks MultiViews # Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>