apache2 redirect doesn't workapache2 configuration for blog.example.com not workingRedirect non-www to www...
Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]
Can I sign legal documents with a smiley face?
What is this called? Old film camera viewer?
"Spoil" vs "Ruin"
Has any country ever had 2 former presidents in jail simultaneously?
What are the purposes of autoencoders?
Which one is correct as adjective “protruding” or “protruded”?
Start making guitar arrangements
How do you make your own symbol when Detexify fails?
Is it better practice to read straight from sheet music rather than memorize it?
Yosemite Fire Rings - What to Expect?
Pre-modern battle - command it, or fight in it?
How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?
Creepy dinosaur pc game identification
How to follow the Halacha?
copy and scale one figure (wheel)
If infinitesimal transformations commute why dont the generators of the Lorentz group commute?
On a tidally locked planet, would time be quantized?
Loading commands from file
Did Swami Prabhupada reject Advaita?
Strong empirical falsification of quantum mechanics based on vacuum energy density
How could a planet have erratic days?
What does routing an IP address mean?
Is the U.S. Code copyrighted by the Government?
apache2 redirect doesn't work
apache2 configuration for blog.example.com not workingRedirect non-www to www over SSL with NginxApache two redirect conditions in one redirect ruleApache 2.4 http auth doesn't prompt credentialsApache2 unexpected redirect: Virtualhost DirectoryIndex not serving index.php automaticallyApache doesnt accept ssl on parts of the domainApache2 - SSL redirect doesn't work no matter what I put into the confighttp to https redirection - apache2Apache 2.4.6 Virtual Host ServerAlias directive not matching alias in all casesApache2 config to redirect wildcard secure domains
This is my configuration:
<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>
It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:
Not Found
The requested URL / was not found on this server.
When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).
apache-2.4 virtualhost https apache2
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
This is my configuration:
<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>
It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:
Not Found
The requested URL / was not found on this server.
When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).
apache-2.4 virtualhost https apache2
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
This is my configuration:
<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>
It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:
Not Found
The requested URL / was not found on this server.
When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).
apache-2.4 virtualhost https apache2
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This is my configuration:
<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>
It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:
Not Found
The requested URL / was not found on this server.
When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).
apache-2.4 virtualhost https apache2
apache-2.4 virtualhost https apache2
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 mins ago
AlexAlex
1
1
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
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
});
}
});
Alex is a new contributor. Be nice, and check out our Code of Conduct.
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%2f959666%2fapache2-redirect-doesnt-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Alex is a new contributor. Be nice, and check out our Code of Conduct.
Alex is a new contributor. Be nice, and check out our Code of Conduct.
Alex is a new contributor. Be nice, and check out our Code of Conduct.
Alex is a new contributor. Be nice, and check out our Code of Conduct.
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%2f959666%2fapache2-redirect-doesnt-work%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