<Directory "/var/www/html/lg">
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order deny,allow
# Deny from all
# Allow from 202.65.113.0/24 202.65.112.0/24
Allow from all
</Directory>
<VirtualHost 202.65.114.204:80>
Options FollowSymLinks
ServerAdmin support@jogja.citra.net.id
DocumentRoot /var/www/html/lg
ServerName lg.jogja.citra.net.id
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^202\.65\.11[2-3]\.
RewriteRule ^(/|/lg2)$ /lg [R]
RewriteCond %{REMOTE_ADDR} !^202\.65\.11[2-3]\.
RewriteRule ^(/|/lg)$ /lg2 [R]
</VirtualHost>
Alias /lg/favicon.ico "/var/www/html/lg/favicon.ico"
ScriptAlias /lg "/var/www/html/lg/lg.cgi"
ScriptAlias /lg2 "/var/www/html/lg2/lg.cgi"
No comments:
Post a Comment