Access forbidden on Apache webserver on NixOSApache 403 Forbidden on sub folders?Can't list symlinks on...
Does anyone recognize these rockets, and their location?
Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?
On George Box, Galit Shmueli and the scientific method?
What is the color associated with lukewarm?
Why are almost all the people in this orchestra recording wearing headphones with one ear on and one ear off?
Why is Skinner so awkward in Hot Fuzz?
Is there any effect in D&D 5e that cannot be undone?
How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?
How did Avada Kedavra get its name?
How do I become a better writer when I hate reading?
How does the Linux command "mount -a" work?
Why is gun control associated with the socially liberal Democratic party?
2 Managed Packages in 1 Dev Org
When is the phrase "j'ai bon" used?
Having some issue with notation in a Hilbert space
How "fast" does astronomical events happen?
Are there any super-powered aliens in the Marvel universe?
First occurrence in the Sixers sequence
How to prevent cables getting intertwined
Is swap gate equivalent to just exchanging the wire of the two qubits?
Cut power on a remote Raspberry Pi 3 via another raspi
Do my partner and son need an SSN to be dependents on my taxes?
Can you cover a cube with copies of this shape?
Can a non-invertible function be inverted by returning a set of all possible solutions?
Access forbidden on Apache webserver on NixOS
Apache 403 Forbidden on sub folders?Can't list symlinks on apacheHow to speed up an apache webserver?Setting up an HTTP server on two mounted drivesApache - 403 ForbiddenUbuntu 16.04/Apache 2.4.18: 403 Forbiddenhttpd not reading the document root in conf/httpd.conf as expectedaccess forbidden (403) for localhost/adminer with apacheApache server giving 403 Forbidden for IPV6 addresses?Apache Server unable to access directory (403 Forbidden Error)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
For the purpose of running a webserver on my NixOS installation, I have included the following in my configuration.nix. (Note that I have very little experience with setting up servers and have not found exact definitions of all of the parameters included below.)
services.httpd = {
enable = true;
adminAddr = "localhost";
extraModules = [ "http2" ];
virtualHosts =
[
{
hostName = "localhost";
documentRoot = "/home/edmund/docroot";
enableUserDir = true;
servedDirs = [ { urlPath = "/www"; dir = "/www"; } ];
serverAliases = [ "localhost" ];
enableSSL = false;
}
];
};
However when I try to access the default index.html page through http://localhost on a Firefox browser, the message which comes up is 'Access forbidden! Error 403' (with some additional descriptive text).
Is this because HTTPD_ROOT and the DocumentRoot listed in the httpd.conf file both seem to point to a directory inside /nix/store, which has tightly locked permissions? (Rather than the document root which I specified.)
How can I configure this server to display a page?
Thanks.
apache-httpd nixos
New contributor
add a comment |
For the purpose of running a webserver on my NixOS installation, I have included the following in my configuration.nix. (Note that I have very little experience with setting up servers and have not found exact definitions of all of the parameters included below.)
services.httpd = {
enable = true;
adminAddr = "localhost";
extraModules = [ "http2" ];
virtualHosts =
[
{
hostName = "localhost";
documentRoot = "/home/edmund/docroot";
enableUserDir = true;
servedDirs = [ { urlPath = "/www"; dir = "/www"; } ];
serverAliases = [ "localhost" ];
enableSSL = false;
}
];
};
However when I try to access the default index.html page through http://localhost on a Firefox browser, the message which comes up is 'Access forbidden! Error 403' (with some additional descriptive text).
Is this because HTTPD_ROOT and the DocumentRoot listed in the httpd.conf file both seem to point to a directory inside /nix/store, which has tightly locked permissions? (Rather than the document root which I specified.)
How can I configure this server to display a page?
Thanks.
apache-httpd nixos
New contributor
add a comment |
For the purpose of running a webserver on my NixOS installation, I have included the following in my configuration.nix. (Note that I have very little experience with setting up servers and have not found exact definitions of all of the parameters included below.)
services.httpd = {
enable = true;
adminAddr = "localhost";
extraModules = [ "http2" ];
virtualHosts =
[
{
hostName = "localhost";
documentRoot = "/home/edmund/docroot";
enableUserDir = true;
servedDirs = [ { urlPath = "/www"; dir = "/www"; } ];
serverAliases = [ "localhost" ];
enableSSL = false;
}
];
};
However when I try to access the default index.html page through http://localhost on a Firefox browser, the message which comes up is 'Access forbidden! Error 403' (with some additional descriptive text).
Is this because HTTPD_ROOT and the DocumentRoot listed in the httpd.conf file both seem to point to a directory inside /nix/store, which has tightly locked permissions? (Rather than the document root which I specified.)
How can I configure this server to display a page?
Thanks.
apache-httpd nixos
New contributor
For the purpose of running a webserver on my NixOS installation, I have included the following in my configuration.nix. (Note that I have very little experience with setting up servers and have not found exact definitions of all of the parameters included below.)
services.httpd = {
enable = true;
adminAddr = "localhost";
extraModules = [ "http2" ];
virtualHosts =
[
{
hostName = "localhost";
documentRoot = "/home/edmund/docroot";
enableUserDir = true;
servedDirs = [ { urlPath = "/www"; dir = "/www"; } ];
serverAliases = [ "localhost" ];
enableSSL = false;
}
];
};
However when I try to access the default index.html page through http://localhost on a Firefox browser, the message which comes up is 'Access forbidden! Error 403' (with some additional descriptive text).
Is this because HTTPD_ROOT and the DocumentRoot listed in the httpd.conf file both seem to point to a directory inside /nix/store, which has tightly locked permissions? (Rather than the document root which I specified.)
How can I configure this server to display a page?
Thanks.
apache-httpd nixos
apache-httpd nixos
New contributor
New contributor
New contributor
asked 48 mins ago
edmundedmund
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
edmund 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%2funix.stackexchange.com%2fquestions%2f525063%2faccess-forbidden-on-apache-webserver-on-nixos%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
edmund is a new contributor. Be nice, and check out our Code of Conduct.
edmund is a new contributor. Be nice, and check out our Code of Conduct.
edmund is a new contributor. Be nice, and check out our Code of Conduct.
edmund is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f525063%2faccess-forbidden-on-apache-webserver-on-nixos%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