Search code examples
apachereverse-proxy

Apache ProxyPass - receiving 404 page not found


I am using apache first time to manage sites. The issue is when I add ProxyPass / http://127.0.0.1:888/ It works but when I change it to ProxyPass /swarmpit http://127.0.0.1:888/, it doesn't work and I get 404 page not found. Below is the explanation in screenshots.

My /etc/apache2/sites-available/000-default.conf looks like enter image description here

When I access swarmpit, it says 404 not found. enter image description here

But when I change /etc/apache2/sites-available/000-default.conf to enter image description here

It works fine

enter image description here

Is there anything I am missing to access /swampit


Solution

  • You misspelled the URL in your curl command. In your curl command you are using swampit and in your conf file, you are using swarmpit.