- Used Zammad version: latest
- Used Zammad installation source: (source, package, …) package from installer
- Operating system: Debian 9.3
- Browser + version: Firefox 59
Expected behavior:
- Have a own server, where i want to run zammad on. I also have virtualmin on that server, because it has quite perfomance overhead. One of the virtual servers should be the “host” for zammad like support.example.com. So, when i enter that in a browserwindow, it should open zammad.
Actual behavior:
- Differs on config: Sometimes it says You don’t have permission to access / on server.
If i have all those ssl / proxy directives from the apache conf in my .conf file, it says this:
SSL Proxy requested for support.help-me-do.it:443 but not enabled[Hint: SSLProxyEngine
HTTPS: failed to enable ssl support for 127.0.0.1:3000 (localhost)
I googled around several hrs, just to find out, that there should be a nginx installation as well, which isn’t.
I followd this installation guide:
https://docs.zammad.org/en/latest/install-debian.html
So i am a little bit confused. my apache conf file from virtualmin looks like this:
<VirtualHost 199.100.00.000:443>
ServerName support.example.com
ServerAlias www.support.example.com
ServerAlias webmail.support.example.com
ServerAlias admin.support.example.com
DocumentRoot /opt/zammad/public
don’t loose time with IP address lookups
HostnameLookups Off
## needed for named virtual hosts
UseCanonicalName Off
## configures the footer on server-generated documents
ServerSignature Off
SSLProxyEngine on
ProxyRequests Off
ProxyPreserveHost On
<Proxy localhost:3000>
Require local
</Proxy>
ProxyPass /assets !
ProxyPass /favicon.ico !
ProxyPass /robots.txt !
ProxyPass /ws ws://localhost:6042/
ProxyPass / https://localhost:3000/
Options FollowSymLinks
AllowOverride None
<Directory /opt/zammad/public>
Options FollowSymLinks
Require all granted
</Directory>
ErrorLog /var/log/virtualmin/support.example.com_error_log
CustomLog /var/log/virtualmin/support.example.com_access_log combined
ScriptAlias /cgi-bin/ /home/example/domains/support.example.com/cgi-bin/
ScriptAlias /awstats/ /home/example/domains/support.example.com/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/example/domains/support.example.com/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php7.0 .php7.0
AddType application/x-httpd-php .php
<Directory /home/example/domains/support.example.com/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.support.example.com
RewriteRule ^(.) https://support.example.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.support.example.com
RewriteRule ^(.) https://support.example.com:10000/ [R]
SSLEngine on
SSLCertificateFile /home/example/domains/support.example.com/ssl.cert
SSLCertificateKeyFile /home/example/domains/support.example.com/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
AuthName “support.example.com statistics”
AuthType Basic
AuthUserFile /home/example/domains/support.example.com/.awstats-htpasswd
require valid-user
RedirectMatch /cgi-bin/mailman/([^/.])(.cgi)?(.) https://support.example.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
RedirectMatch /mailman/([^/.])(.cgi)?(.) https://support.example.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
Alias /pipermail /var/lib/mailman/archives/public
i didn’t care about port 80 setup, since i wanted to run it on https.
The SSLProxyEngine on i found by googling around, but this didn’t help either. When i outcomment all the proxy stuff, i get this error:
Cannot serve directory /opt/zammad/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php
i also had this error: No permission to serve / which i got around by adding my virtual host user to the zammad group and zammad user added to my virtual hosts users group.
I would have tried uninstall and re-install, but haven’t found information about that either. I know, apache ist quite uncommon for zammad. Coming from OTRS, where i was able to run it in that way i outlined above, i thought, this would be possible with zammad as well.
Any idea truly appreciated.
I might be barking up the wrong tree, but perhaps it is just a little something somewhere, which i can’t see
Thanks
PS: I am also confused, since my opt/zammad/public dir only contains this:
assets
401.html
402.html
422.html
500.html
apple-touch-icon.png
favicon.ico
robots.txt
Am i missing here something?