Redirect Path /dev/ doesn't work

Discussion in 'General' started by renky, Dec 23, 2015.

  1. renky

    renky New Member

    Hello

    I have an aliasdomain where the following settings have been done:
    Redirect Type: no flag
    Redirect Path: /dev/
    If this ist set, there appears an error message on the Webpage
    And in the error.log there is the message:
    The directory /web/dev exists. And if I rename /web/dev to e.g. /web/deb and change Redirect Path to /deb/ everything is working.
    Does anybody have an Idea, why Redirecting to /dev/ is declined?
    I already searched in all config-Files for a "dev"-forbiddance but didn't find anything like that...

    Best regards
    renky
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The directory /dev is a Linux system directory and when you use an absolute path in an apache rewrite rule, then apache tries to match it to the / root directory before it searches in the website and as you dont have the permission to access /dev on a Linux system as website user, you get a access denied.

    What you can try is that you use the absolute path /var/www/....../dev/ as redirect target.
     
    hsluis likes this.
  3. renky

    renky New Member

    Hmm.. yes, this absolute path fixed it...
    Is there a possibility to enter a "relative" path for the redirect? Seems not? because ./dev/ or dev/ is not allowed because of regex...

    Best regards
    and happy holidays!
     

Share This Page