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:
+7
-1
@@ -11,10 +11,16 @@
|
|||||||
# Add support for X-Forwarded-For
|
# Add support for X-Forwarded-For
|
||||||
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
|
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
|
||||||
|
|
||||||
|
# Logging
|
||||||
ErrorLog ${APACHE_LOG_DIR}/echoip-error.log
|
ErrorLog ${APACHE_LOG_DIR}/echoip-error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/echoip-access.log combined
|
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>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user