Apache reverse proxy with HTTPS does not redirect to internal website The Next CEO of Stack...
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
(How) Could a medieval fantasy world survive a magic-induced "nuclear winter"?
Expectation in a stochastic differential equation
Expressing the idea of having a very busy time
Is there an equivalent of cd - for cp or mv
Airplane gently rocking its wings during whole flight
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Why did early computer designers eschew integers?
How to avoid supervisors with prejudiced views?
Redefining symbol midway through a document
Is there such a thing as a proper verb, like a proper noun?
Audio Conversion With ADS1243
Is dried pee considered dirt?
Film where the government was corrupt with aliens, people sent to kill aliens are given rigged visors not showing the right aliens
What flight has the highest ratio of timezone difference to flight time?
free fall ellipse or parabola?
Is there a difference between "Fahrstuhl" and "Aufzug"?
Is it convenient to ask the journal's editor for two additional days to complete a review?
Which one is the true statement?
Computationally populating tables with probability data
How do I fit a non linear curve?
Why don't programming languages automatically manage the synchronous/asynchronous problem?
Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"
Apache reverse proxy with HTTPS does not redirect to internal website
The Next CEO of Stack OverflowApache Default/Catch-All Virtual Host?When Using Reverse Proxy, Backend Server Does 301 Back to The Proxy Server or Changes URLUnbuntu server running Apache with an SSL Cert IssueReverse Proxy with https redirect in LighttpdRedirect/rewrite url with apache reverse proxyApache reverse proxy with ssl not workingNginx Reverse Proxy with HTTPS not workingWhy does my website redirect from https to http?Apex / Apache + reverse proxy + mod_rewrite with HTTPSHow to redirect nginx from http to https behind an apache reverse proxy?RewriteEngine rules ignored by Apache on SSL
We have installed MyCollab which is a web-based project management system, unfortunately it does not support HTTPS. They say here that the system does not support HTTPS but you can use Apache reverse proxy to redirect https to the internal website.
Now here is my httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /root/mysitename.crt
SSLCertificateKeyFile /root/mysitename.key
ProxyPreserveHost On
ProxyPass / http://server-ip:9000/
ProxyPassReverse / http://server-ip:9000/
ServerName localhost
RewriteEngine On
</VirtualHost>
The application is running on port 9000. What happens is, requesting the server IP with HTTPS works fine but it does not redirect me to the internal website, instead it shows the Apache test web page. What am I missing here?
The server has Scientific Linux 7.3 with Apache 2.4.6
apache-2.4 reverse-proxy https
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
We have installed MyCollab which is a web-based project management system, unfortunately it does not support HTTPS. They say here that the system does not support HTTPS but you can use Apache reverse proxy to redirect https to the internal website.
Now here is my httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /root/mysitename.crt
SSLCertificateKeyFile /root/mysitename.key
ProxyPreserveHost On
ProxyPass / http://server-ip:9000/
ProxyPassReverse / http://server-ip:9000/
ServerName localhost
RewriteEngine On
</VirtualHost>
The application is running on port 9000. What happens is, requesting the server IP with HTTPS works fine but it does not redirect me to the internal website, instead it shows the Apache test web page. What am I missing here?
The server has Scientific Linux 7.3 with Apache 2.4.6
apache-2.4 reverse-proxy https
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
We have installed MyCollab which is a web-based project management system, unfortunately it does not support HTTPS. They say here that the system does not support HTTPS but you can use Apache reverse proxy to redirect https to the internal website.
Now here is my httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /root/mysitename.crt
SSLCertificateKeyFile /root/mysitename.key
ProxyPreserveHost On
ProxyPass / http://server-ip:9000/
ProxyPassReverse / http://server-ip:9000/
ServerName localhost
RewriteEngine On
</VirtualHost>
The application is running on port 9000. What happens is, requesting the server IP with HTTPS works fine but it does not redirect me to the internal website, instead it shows the Apache test web page. What am I missing here?
The server has Scientific Linux 7.3 with Apache 2.4.6
apache-2.4 reverse-proxy https
We have installed MyCollab which is a web-based project management system, unfortunately it does not support HTTPS. They say here that the system does not support HTTPS but you can use Apache reverse proxy to redirect https to the internal website.
Now here is my httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /root/mysitename.crt
SSLCertificateKeyFile /root/mysitename.key
ProxyPreserveHost On
ProxyPass / http://server-ip:9000/
ProxyPassReverse / http://server-ip:9000/
ServerName localhost
RewriteEngine On
</VirtualHost>
The application is running on port 9000. What happens is, requesting the server IP with HTTPS works fine but it does not redirect me to the internal website, instead it shows the Apache test web page. What am I missing here?
The server has Scientific Linux 7.3 with Apache 2.4.6
apache-2.4 reverse-proxy https
apache-2.4 reverse-proxy https
asked Nov 28 '17 at 13:13
3bdalla3bdalla
1072
1072
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If no ServerName
or ServerAlias
matches the request, the first <VirtualHost *:443>
virtual host configuration loaded will be the default. You either have another <VirtualHost *:443>
that actually matches the server IP address or one that comes first in the configuration. That might be directly in your httpd.conf
or as an include.
On Scientific Linux the configuration file is /etc/httpd/conf/httpd.conf
. Additional configurations are stored in the /etc/httpd/conf.d/
directory. Probably this directory is included somewhere before your VirtualHost
configuration.
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f885511%2fapache-reverse-proxy-with-https-does-not-redirect-to-internal-website%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If no ServerName
or ServerAlias
matches the request, the first <VirtualHost *:443>
virtual host configuration loaded will be the default. You either have another <VirtualHost *:443>
that actually matches the server IP address or one that comes first in the configuration. That might be directly in your httpd.conf
or as an include.
On Scientific Linux the configuration file is /etc/httpd/conf/httpd.conf
. Additional configurations are stored in the /etc/httpd/conf.d/
directory. Probably this directory is included somewhere before your VirtualHost
configuration.
add a comment |
If no ServerName
or ServerAlias
matches the request, the first <VirtualHost *:443>
virtual host configuration loaded will be the default. You either have another <VirtualHost *:443>
that actually matches the server IP address or one that comes first in the configuration. That might be directly in your httpd.conf
or as an include.
On Scientific Linux the configuration file is /etc/httpd/conf/httpd.conf
. Additional configurations are stored in the /etc/httpd/conf.d/
directory. Probably this directory is included somewhere before your VirtualHost
configuration.
add a comment |
If no ServerName
or ServerAlias
matches the request, the first <VirtualHost *:443>
virtual host configuration loaded will be the default. You either have another <VirtualHost *:443>
that actually matches the server IP address or one that comes first in the configuration. That might be directly in your httpd.conf
or as an include.
On Scientific Linux the configuration file is /etc/httpd/conf/httpd.conf
. Additional configurations are stored in the /etc/httpd/conf.d/
directory. Probably this directory is included somewhere before your VirtualHost
configuration.
If no ServerName
or ServerAlias
matches the request, the first <VirtualHost *:443>
virtual host configuration loaded will be the default. You either have another <VirtualHost *:443>
that actually matches the server IP address or one that comes first in the configuration. That might be directly in your httpd.conf
or as an include.
On Scientific Linux the configuration file is /etc/httpd/conf/httpd.conf
. Additional configurations are stored in the /etc/httpd/conf.d/
directory. Probably this directory is included somewhere before your VirtualHost
configuration.
edited Nov 28 '17 at 14:10
answered Nov 28 '17 at 14:02
Esa JokinenEsa Jokinen
23.6k23359
23.6k23359
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f885511%2fapache-reverse-proxy-with-https-does-not-redirect-to-internal-website%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown