Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTTP config section. #89

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 30 additions & 17 deletions COPY/etc/httpd/conf.d/manageiq-http.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,36 @@ ErrorLog /var/www/miq/vmdb/log/apache/miq_apache.log
# Disable this section if using HTTP only
RewriteEngine On
Options SymLinksIfOwnerMatch

# These 2 lines redirect HTTP traffic to HTTPS. Disable this to enable HTTP.
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

# Enable this section if using HTTP only
#<VirtualHost *:80>
# Include conf.d/manageiq-redirects-ui
# Include conf.d/manageiq-redirects-ws
# Include conf.d/manageiq-redirects-websocket
# ProxyPreserveHost on
# <Location /assets/>
# Header unset ETag
# FileETag None
# ExpiresActive On
# ExpiresDefault "access plus 1 year"
# </Location>
# <Location /proxy_pages/>
# ErrorDocument 403 /error/noindex.html
# ErrorDocument 404 /error/noindex.html
# </Location>
#</VirtualHost>
# Enable this section if you want to use HTTP only
# <VirtualHost *:80>
#
# ErrorLog /var/www/miq/vmdb/log/apache/error.log
# TransferLog /var/www/miq/vmdb/log/apache/access.log
#
# KeepAlive on
#
# DocumentRoot /var/www/miq/vmdb/public
#
# Include conf.d/manageiq-redirects-ui
# Include conf.d/manageiq-redirects-ws
# Include conf.d/manageiq-redirects-websocket
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was the /proxy_pages section removed ?

# ProxyPreserveHost on
#
# LogLevel warn
#
# <Location /assets/>
# Header unset ETag
# FileETag None
# ExpiresActive On
# ExpiresDefault "access plus 1 year"
# </Location>
#
# </VirtualHost>

# To disable HTTPS (and have HTTP only) you also need to disable the Listen directive in manageiq-https.conf