Updated Apache config file so if the service is accessed via the curl command, it wont redirect to the https site and display that the page is being redirected, but will display what is being requested.
This commit is contained in:
parent
cef1bd1f82
commit
7fe7c60963
@ -11,10 +11,16 @@
|
||||
# Add support for X-Forwarded-For
|
||||
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
|
||||
|
||||
|
||||
# Logging
|
||||
ErrorLog ${APACHE_LOG_DIR}/echoip-error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/echoip-access.log combined
|
||||
|
||||
# Enable RewriteEngine
|
||||
RewriteEngine On
|
||||
|
||||
# Skip redirection if User-Agent contains "curl"
|
||||
RewriteCond %{HTTP_USER_AGENT} !curl/ [NC]
|
||||
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user