Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to redirect some folder within apache2.

My webserver uses with plesk 11.

I followed this tutorial. It says I've got to put redirection rules in this file /etc/apache2/sites-available/default. For my webserver this file doesn't even exist. I guess that's because of plesk's website management. However there is only this one file: 000-default. I did not modify it!

I also managed to locate the config file for my domain. Which is located here


I want to solve my problem with Apache 2 "ProxyPass". Because I think that's the easiest way to solve the redirect.

As I found out, I have to add this line

ProxyPass /folder/map/

This does not work. It exits with error "403 forbidden". Please give me a hint. Thank you!

share|improve this question
I really don't see in the given config anything about how to open URL. It handles /mc/map/up, /mc/map/standalone and /mc/map/tiles, but not /mc/map.Probably you need to remove temporarily this config and check again – Sergey L Feb 20 '13 at 4:31
@SergeyL You are right. I checked this. I think their tutorial is just wrong. So I edited my post. – Peter Feb 24 '13 at 16:39
up vote 3 down vote accepted

Plesk 10/11:

1. Create your individual config for apache2

cd /var/www/vhosts/
sudo touch conf/vhost.conf
sudo vim 

2. Insert your directives there

Press I and insert those lines

RewriteEngine On
ProxyPass /directory/subdir/ http://localhost:8123/
ProxyPassReverse /directory/subdir/ http://localhost:8123/

Press Esc followed by : and write: wq and press

3. Tell apache to use the config

sudo /usr/local/psa/admin/bin/httpdmng --reconfigure-all
sudo service apache2 restart

4. You are done.

Plesk 12

  • Login as administrator
  • Select subscription
  • Open in control panel
  • Web server settings
  • Additional directives for HTTP && Additional directives for HTTPS:

RewriteEngine On
ProxyPass /directory/subdir/ http://localhost:8123/
ProxyPassReverse /directory/subdir/ http://localhost:8123/


share|improve this answer

The answer above is correct, but I have smth to add:

ProxyPass /directory/subdir/ http://localhost:8123/
ProxyPassReverse /directory/subdir/ http://localhost:8123/

No need to add RewriteEngine On here.

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain <YOUR_DOMAIN>

No need to restart httpd also.

share|improve this answer
Welcome to Super User! This is really a comment and not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – DavidPostill Jul 5 '15 at 7:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .