Apache open custom page depending on ip
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I have a apache. There is a config file:
<VirtualHost 0.0.0.0:80>
DocumentRoot /var/www/html
LogFormat "%X-Forwarded-Fori %b %%d/%m/%yt" bandwidth
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
CustomLog /var/log/httpd/bandwidth.log bandwidth
</VirtualHost>
And i have a text file, where stored ip-s, and that list can be modified in time from script file, which monitoring bandwidth by ip, and if ip reached a limit , the monitoring service add ip in text file.
How can i redirect request to static "limit.php" file, when some ip reach limit.
The monitoring service is a script in bash , which calculate bandwidth from /var/log/httpd/bandwidth.log file.
apache-httpd ip webserver
add a comment |Â
up vote
0
down vote
favorite
I have a apache. There is a config file:
<VirtualHost 0.0.0.0:80>
DocumentRoot /var/www/html
LogFormat "%X-Forwarded-Fori %b %%d/%m/%yt" bandwidth
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
CustomLog /var/log/httpd/bandwidth.log bandwidth
</VirtualHost>
And i have a text file, where stored ip-s, and that list can be modified in time from script file, which monitoring bandwidth by ip, and if ip reached a limit , the monitoring service add ip in text file.
How can i redirect request to static "limit.php" file, when some ip reach limit.
The monitoring service is a script in bash , which calculate bandwidth from /var/log/httpd/bandwidth.log file.
apache-httpd ip webserver
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a apache. There is a config file:
<VirtualHost 0.0.0.0:80>
DocumentRoot /var/www/html
LogFormat "%X-Forwarded-Fori %b %%d/%m/%yt" bandwidth
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
CustomLog /var/log/httpd/bandwidth.log bandwidth
</VirtualHost>
And i have a text file, where stored ip-s, and that list can be modified in time from script file, which monitoring bandwidth by ip, and if ip reached a limit , the monitoring service add ip in text file.
How can i redirect request to static "limit.php" file, when some ip reach limit.
The monitoring service is a script in bash , which calculate bandwidth from /var/log/httpd/bandwidth.log file.
apache-httpd ip webserver
I have a apache. There is a config file:
<VirtualHost 0.0.0.0:80>
DocumentRoot /var/www/html
LogFormat "%X-Forwarded-Fori %b %%d/%m/%yt" bandwidth
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
CustomLog /var/log/httpd/bandwidth.log bandwidth
</VirtualHost>
And i have a text file, where stored ip-s, and that list can be modified in time from script file, which monitoring bandwidth by ip, and if ip reached a limit , the monitoring service add ip in text file.
How can i redirect request to static "limit.php" file, when some ip reach limit.
The monitoring service is a script in bash , which calculate bandwidth from /var/log/httpd/bandwidth.log file.
apache-httpd ip webserver
asked Jul 27 at 12:19
Gev Hakobyan
11
11
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can use RewriteMap and then write a RewriteCond that meet your interests.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can use RewriteMap and then write a RewriteCond that meet your interests.
add a comment |Â
up vote
0
down vote
You can use RewriteMap and then write a RewriteCond that meet your interests.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can use RewriteMap and then write a RewriteCond that meet your interests.
You can use RewriteMap and then write a RewriteCond that meet your interests.
answered Jul 27 at 13:45
Lorenzo Garuti
1
1
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f458829%2fapache-open-custom-page-depending-on-ip%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password