Client Denied By Server Configuration Appache Reverse ProxyTomcat cookies not working via my ProxyPass VirtualHostApache2 Permission denied: access to / deniedHost-header from requests are ignored?apache2 configuration for blog.example.com not workingApache Virtual Hosts Not WorkingHow to Proxypass on Apache?Live site with ssl enabled redirects to the staging site without sslAdding additional host to Apache2Rewrite not working in htaccess (apache2.2.22, windows server 2012)Virtual hosts with port 80 & 443 not working
What is this Amiga 1200 mod?
How can one's career as a reviewer be ended?
How to prove a 4D vector is a 4-Vector?
60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race
I've been given a project I can't complete, what should I do?
Analogy between an unknown in an argument, and a contradiction in the principle of explosion
Is it safe to change the harddrive power feature so that it never turns off?
A word that means "blending into a community too much"
How do free-speech protections in the United States apply in public to corporate misrepresentations?
Printing Pascal’s triangle for n number of rows in Python
Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?
bash vs. zsh: What are the practical differences?
How to write a convincing religious myth?
Why is Na5 not played in this line of the French Defense, Advance Variation?
Is the use of umgeben in the passive unusual?
Does putting salt first make it easier for attacker to bruteforce the hash?
How to avoid typing 'git' at the begining of every git command
Why Does Mama Coco Look Old After Going to the Other World?
Separate SPI data
How long is it safe to leave marker on a Chessex battle map?
Live action TV show where High school Kids go into the virtual world and have to clear levels
Did Apple bundle a specific monitor with the Apple II+ for schools?
Is it possible to fly backward if you have really strong headwind?
How do i export activities related to an account with a specific recordtype?
Client Denied By Server Configuration Appache Reverse Proxy
Tomcat cookies not working via my ProxyPass VirtualHostApache2 Permission denied: access to / deniedHost-header from requests are ignored?apache2 configuration for blog.example.com not workingApache Virtual Hosts Not WorkingHow to Proxypass on Apache?Live site with ssl enabled redirects to the staging site without sslAdding additional host to Apache2Rewrite not working in htaccess (apache2.2.22, windows server 2012)Virtual hosts with port 80 & 443 not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
This is driving me stir crazy and I have researched across the Internet trying various answers none of which have worked.
I am using Apache 2.2.9 for Windows and my httpd.conf is as follows:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName MyLocalMachine.MyDomain.com
DocumentRoot "C:/MyFolder/"
<Directory "C:/MyFolder/SubDirectoryOne/SubDirectoryTwo">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
</Directory>
ProxyPass /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
ProxyPassReverse /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
</VirtualHost>
apache-2.2 reverse-proxy proxypass
add a comment |
This is driving me stir crazy and I have researched across the Internet trying various answers none of which have worked.
I am using Apache 2.2.9 for Windows and my httpd.conf is as follows:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName MyLocalMachine.MyDomain.com
DocumentRoot "C:/MyFolder/"
<Directory "C:/MyFolder/SubDirectoryOne/SubDirectoryTwo">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
</Directory>
ProxyPass /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
ProxyPassReverse /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
</VirtualHost>
apache-2.2 reverse-proxy proxypass
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
Two things:AllowOverride All
means that you allow.htaccess
files to amend the server configuration on a per directory basis and an access restriction in a.htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?
– HBruijn
Aug 3 '16 at 15:07
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42
add a comment |
This is driving me stir crazy and I have researched across the Internet trying various answers none of which have worked.
I am using Apache 2.2.9 for Windows and my httpd.conf is as follows:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName MyLocalMachine.MyDomain.com
DocumentRoot "C:/MyFolder/"
<Directory "C:/MyFolder/SubDirectoryOne/SubDirectoryTwo">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
</Directory>
ProxyPass /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
ProxyPassReverse /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
</VirtualHost>
apache-2.2 reverse-proxy proxypass
This is driving me stir crazy and I have researched across the Internet trying various answers none of which have worked.
I am using Apache 2.2.9 for Windows and my httpd.conf is as follows:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName MyLocalMachine.MyDomain.com
DocumentRoot "C:/MyFolder/"
<Directory "C:/MyFolder/SubDirectoryOne/SubDirectoryTwo">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
</Directory>
ProxyPass /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
ProxyPassReverse /MyFolder/SubDirectoryOne/ http://ServerOne.MyDomain.com/MyFolder/SubDirectoryOne/
</VirtualHost>
apache-2.2 reverse-proxy proxypass
apache-2.2 reverse-proxy proxypass
asked Aug 3 '16 at 14:15
Andy5Andy5
119119
119119
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
Two things:AllowOverride All
means that you allow.htaccess
files to amend the server configuration on a per directory basis and an access restriction in a.htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?
– HBruijn
Aug 3 '16 at 15:07
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42
add a comment |
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
Two things:AllowOverride All
means that you allow.htaccess
files to amend the server configuration on a per directory basis and an access restriction in a.htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?
– HBruijn
Aug 3 '16 at 15:07
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
Two things:
AllowOverride All
means that you allow .htaccess
files to amend the server configuration on a per directory basis and an access restriction in a .htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?– HBruijn
Aug 3 '16 at 15:07
Two things:
AllowOverride All
means that you allow .htaccess
files to amend the server configuration on a per directory basis and an access restriction in a .htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?– HBruijn
Aug 3 '16 at 15:07
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42
add a comment |
2 Answers
2
active
oldest
votes
You are just giving access to a subdirectory, while the documentroot has no permissions.
Also do not mix "absolute" Options "FollowSymlinks" with relative Options (-Indexes) you either, use +/- or not at all in all your options, but do not mix it.
The correct configuration for the directory would be:
<Directory "C:/MyFolder/">
Options FollowSymlinks # Or Options -Indexes +FollowSymlinks
Allow from all
Order deny,allow
</Directory>
Try with this, because this "must" allow access to the documentroot and all directories, but if you don't specify the documentroot and only just a subdirectory you are leaving the rest of the directories in the tree under documentroot without access.
SideNote:
Also, it is important to note that ProxyPass directives do not specify full paths, but relative to DocumentRoot so maybe your ProxyPass should be:
ProxyPass /SubdirectoryOne/ ...
Once you see it works, you can then add your AllowOverride all if necessary. Although if you have access to the main configuration yous shoudln't use .htaccess files at all, since it is just intended for users with limited rights in certain directories, not for administrators. It will also increase the overhead in the server as well as complicate configuring apache.
add a comment |
Unfortunately your configuration doesn't really make sense.
When you ProxyPass to are sending the request to another "back-end" service, where as <Directory> controls what Apache does when that virtual host maps the request to the file system. A single virtual host cannot do both with the same request.
I would start by adding individual access/error logs to each virtual host you have (if you have more than one) to verify the request is landing where you think it is. Run "httpd -S" to see how many virtual hosts you have defined.
The most common causes of "client denied by server configuration" are detailed here: http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
add a comment |
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
);
);
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%2f793624%2fclient-denied-by-server-configuration-appache-reverse-proxy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are just giving access to a subdirectory, while the documentroot has no permissions.
Also do not mix "absolute" Options "FollowSymlinks" with relative Options (-Indexes) you either, use +/- or not at all in all your options, but do not mix it.
The correct configuration for the directory would be:
<Directory "C:/MyFolder/">
Options FollowSymlinks # Or Options -Indexes +FollowSymlinks
Allow from all
Order deny,allow
</Directory>
Try with this, because this "must" allow access to the documentroot and all directories, but if you don't specify the documentroot and only just a subdirectory you are leaving the rest of the directories in the tree under documentroot without access.
SideNote:
Also, it is important to note that ProxyPass directives do not specify full paths, but relative to DocumentRoot so maybe your ProxyPass should be:
ProxyPass /SubdirectoryOne/ ...
Once you see it works, you can then add your AllowOverride all if necessary. Although if you have access to the main configuration yous shoudln't use .htaccess files at all, since it is just intended for users with limited rights in certain directories, not for administrators. It will also increase the overhead in the server as well as complicate configuring apache.
add a comment |
You are just giving access to a subdirectory, while the documentroot has no permissions.
Also do not mix "absolute" Options "FollowSymlinks" with relative Options (-Indexes) you either, use +/- or not at all in all your options, but do not mix it.
The correct configuration for the directory would be:
<Directory "C:/MyFolder/">
Options FollowSymlinks # Or Options -Indexes +FollowSymlinks
Allow from all
Order deny,allow
</Directory>
Try with this, because this "must" allow access to the documentroot and all directories, but if you don't specify the documentroot and only just a subdirectory you are leaving the rest of the directories in the tree under documentroot without access.
SideNote:
Also, it is important to note that ProxyPass directives do not specify full paths, but relative to DocumentRoot so maybe your ProxyPass should be:
ProxyPass /SubdirectoryOne/ ...
Once you see it works, you can then add your AllowOverride all if necessary. Although if you have access to the main configuration yous shoudln't use .htaccess files at all, since it is just intended for users with limited rights in certain directories, not for administrators. It will also increase the overhead in the server as well as complicate configuring apache.
add a comment |
You are just giving access to a subdirectory, while the documentroot has no permissions.
Also do not mix "absolute" Options "FollowSymlinks" with relative Options (-Indexes) you either, use +/- or not at all in all your options, but do not mix it.
The correct configuration for the directory would be:
<Directory "C:/MyFolder/">
Options FollowSymlinks # Or Options -Indexes +FollowSymlinks
Allow from all
Order deny,allow
</Directory>
Try with this, because this "must" allow access to the documentroot and all directories, but if you don't specify the documentroot and only just a subdirectory you are leaving the rest of the directories in the tree under documentroot without access.
SideNote:
Also, it is important to note that ProxyPass directives do not specify full paths, but relative to DocumentRoot so maybe your ProxyPass should be:
ProxyPass /SubdirectoryOne/ ...
Once you see it works, you can then add your AllowOverride all if necessary. Although if you have access to the main configuration yous shoudln't use .htaccess files at all, since it is just intended for users with limited rights in certain directories, not for administrators. It will also increase the overhead in the server as well as complicate configuring apache.
You are just giving access to a subdirectory, while the documentroot has no permissions.
Also do not mix "absolute" Options "FollowSymlinks" with relative Options (-Indexes) you either, use +/- or not at all in all your options, but do not mix it.
The correct configuration for the directory would be:
<Directory "C:/MyFolder/">
Options FollowSymlinks # Or Options -Indexes +FollowSymlinks
Allow from all
Order deny,allow
</Directory>
Try with this, because this "must" allow access to the documentroot and all directories, but if you don't specify the documentroot and only just a subdirectory you are leaving the rest of the directories in the tree under documentroot without access.
SideNote:
Also, it is important to note that ProxyPass directives do not specify full paths, but relative to DocumentRoot so maybe your ProxyPass should be:
ProxyPass /SubdirectoryOne/ ...
Once you see it works, you can then add your AllowOverride all if necessary. Although if you have access to the main configuration yous shoudln't use .htaccess files at all, since it is just intended for users with limited rights in certain directories, not for administrators. It will also increase the overhead in the server as well as complicate configuring apache.
answered Aug 8 '16 at 8:10
ezra-sezra-s
1,6061310
1,6061310
add a comment |
add a comment |
Unfortunately your configuration doesn't really make sense.
When you ProxyPass to are sending the request to another "back-end" service, where as <Directory> controls what Apache does when that virtual host maps the request to the file system. A single virtual host cannot do both with the same request.
I would start by adding individual access/error logs to each virtual host you have (if you have more than one) to verify the request is landing where you think it is. Run "httpd -S" to see how many virtual hosts you have defined.
The most common causes of "client denied by server configuration" are detailed here: http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
add a comment |
Unfortunately your configuration doesn't really make sense.
When you ProxyPass to are sending the request to another "back-end" service, where as <Directory> controls what Apache does when that virtual host maps the request to the file system. A single virtual host cannot do both with the same request.
I would start by adding individual access/error logs to each virtual host you have (if you have more than one) to verify the request is landing where you think it is. Run "httpd -S" to see how many virtual hosts you have defined.
The most common causes of "client denied by server configuration" are detailed here: http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
add a comment |
Unfortunately your configuration doesn't really make sense.
When you ProxyPass to are sending the request to another "back-end" service, where as <Directory> controls what Apache does when that virtual host maps the request to the file system. A single virtual host cannot do both with the same request.
I would start by adding individual access/error logs to each virtual host you have (if you have more than one) to verify the request is landing where you think it is. Run "httpd -S" to see how many virtual hosts you have defined.
The most common causes of "client denied by server configuration" are detailed here: http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
Unfortunately your configuration doesn't really make sense.
When you ProxyPass to are sending the request to another "back-end" service, where as <Directory> controls what Apache does when that virtual host maps the request to the file system. A single virtual host cannot do both with the same request.
I would start by adding individual access/error logs to each virtual host you have (if you have more than one) to verify the request is landing where you think it is. Run "httpd -S" to see how many virtual hosts you have defined.
The most common causes of "client denied by server configuration" are detailed here: http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
answered Aug 22 '16 at 15:16
UnbelieverUnbeliever
1,7511415
1,7511415
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%2f793624%2fclient-denied-by-server-configuration-appache-reverse-proxy%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
can you try adding ' Allow from all ' below ' Order allow,deny' in Directory section
– Sachin Singh
Aug 3 '16 at 14:24
also for proxyPass section refer : wiki.apache.org/httpd/ClientDeniedByServerConfiguration
– Sachin Singh
Aug 3 '16 at 14:28
I have tried swapping the Allow from all around and it made no difference. Yes, I did look at Apache's wiki where I tried the solutions suggested, but none have worked
– Andy5
Aug 3 '16 at 14:31
Two things:
AllowOverride All
means that you allow.htaccess
files to amend the server configuration on a per directory basis and an access restriction in a.htaccess
file may result in the same message. Second: can the error originate not from Apache but from the target of your ProxyPass?– HBruijn
Aug 3 '16 at 15:07
What I am doing is prototyping a configuration for eventual production to tease out these issues. The actual test is a web based application (internal not public) and in my development environment I am having the server to call a URL to my desktop where I have apache, through the proxypass I am then calling back to the server. Other proxypass doing this type of setup have worked apart from this one. The only difference here are the subdirectories
– Andy5
Aug 3 '16 at 15:42