Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access login page with /postfixadmin #173

Closed
ghost opened this issue May 4, 2018 · 4 comments
Closed

Can't access login page with /postfixadmin #173

ghost opened this issue May 4, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented May 4, 2018

Hey,

so since version 3.2 I've got an Issue with Postfix Admin.
When I'm trying to access the login page with domain.tld/postfixadmin I get the following report:

The Postfix Admin directory layout changed.
Please update your webserver config so that the DocumentRoot or Alias points to the directory "public".

But I'm able to access Postfix Admin with domain.tld/postfixadmin/public.
Anyway I'd prefer to access the login page with the regular path again.
If someone could tell me how to fix this exactly, that would be great. :)

@DavidGoodwin
Copy link
Member

You need to reconfigure your webserver so it maps /path/to/postfixadmin/public to domain.tld/postfixadmin .... that's all.

So - it's probably a case of changing an Alias definition within Apache.

@ghost
Copy link
Author

ghost commented May 5, 2018

Thanks for replying!
So yeah after some research I actually got it.
For those having this problem too, here's the solution:

  1. Open your apache2.conf (/etc/apache2/apache2.conf)

  2. Search for

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Require all granted
</Directory>
  1. Put this code below (Maybe you need to adjust the path)
Alias /postfixadmin/ "/var/www/html/postfixadmin/public/"
<Directory "/var/www/html/postfixadmin/public/">
        Options FollowSymLinks
        AllowOverride None
        Allow from all
        Order allow,deny
</Directory>
  1. Restart Apache /etc/init.d/apache2 restart and done.

Some things can be so easy if you know how to do it. :D

@DavidGoodwin
Copy link
Member

Quite! If you're installing Postfixadmin through the .deb package, then you probably want to edit /etc/apache2/conf-available/postfixadmin.conf (perhaps) or /etc/postfixadmin/apache.conf (perhaps).... it just depends on your circumstances.

@supersophie
Copy link

I've got a better idea. Downgrade to the earlier version I was on, because it worked before with this. Is there a downgrade set of instructions available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants