How to Correct Apache Pathing?
up vote
0
down vote
favorite
Currently I have multiple different Apache/PHP Docker containers running on one host. On the main host I have an installation of Apache that is doing a ProxyPass to the port that each container's Apache is running on, so that when you visit certain directories on the host, it calls that container.
Example: test.abc.com/con1 is proxying to port 32500
Example: test.abc.com/con2 is proxying to port 32501
The problem I am having is that when I visit these directories the Apache server on the container doesn't realize that it's already in a directory. So when looking at files in the directory list, they link like this:
test.abc.com/file.txt
Instead of like this:
test.abc.com/con1/file.txt
How would I fix this so that the container's Apache knows which directory it's already in? I'm relatively new to customizing Apache configurations on my own.
apache
New contributor
Bobby D. 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 |
up vote
0
down vote
favorite
Currently I have multiple different Apache/PHP Docker containers running on one host. On the main host I have an installation of Apache that is doing a ProxyPass to the port that each container's Apache is running on, so that when you visit certain directories on the host, it calls that container.
Example: test.abc.com/con1 is proxying to port 32500
Example: test.abc.com/con2 is proxying to port 32501
The problem I am having is that when I visit these directories the Apache server on the container doesn't realize that it's already in a directory. So when looking at files in the directory list, they link like this:
test.abc.com/file.txt
Instead of like this:
test.abc.com/con1/file.txt
How would I fix this so that the container's Apache knows which directory it's already in? I'm relatively new to customizing Apache configurations on my own.
apache
New contributor
Bobby D. 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 |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Currently I have multiple different Apache/PHP Docker containers running on one host. On the main host I have an installation of Apache that is doing a ProxyPass to the port that each container's Apache is running on, so that when you visit certain directories on the host, it calls that container.
Example: test.abc.com/con1 is proxying to port 32500
Example: test.abc.com/con2 is proxying to port 32501
The problem I am having is that when I visit these directories the Apache server on the container doesn't realize that it's already in a directory. So when looking at files in the directory list, they link like this:
test.abc.com/file.txt
Instead of like this:
test.abc.com/con1/file.txt
How would I fix this so that the container's Apache knows which directory it's already in? I'm relatively new to customizing Apache configurations on my own.
apache
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Currently I have multiple different Apache/PHP Docker containers running on one host. On the main host I have an installation of Apache that is doing a ProxyPass to the port that each container's Apache is running on, so that when you visit certain directories on the host, it calls that container.
Example: test.abc.com/con1 is proxying to port 32500
Example: test.abc.com/con2 is proxying to port 32501
The problem I am having is that when I visit these directories the Apache server on the container doesn't realize that it's already in a directory. So when looking at files in the directory list, they link like this:
test.abc.com/file.txt
Instead of like this:
test.abc.com/con1/file.txt
How would I fix this so that the container's Apache knows which directory it's already in? I'm relatively new to customizing Apache configurations on my own.
apache
apache
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 4 at 9:55
Uwe Keim
27.2k30126209
27.2k30126209
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 4 at 9:50
Bobby D.
11
11
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Bobby D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Bobby D. 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 |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Bobby D. is a new contributor. Be nice, and check out our Code of Conduct.
Bobby D. is a new contributor. Be nice, and check out our Code of Conduct.
Bobby D. is a new contributor. Be nice, and check out our Code of Conduct.
Bobby D. 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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139535%2fhow-to-correct-apache-pathing%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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