Page 17 of 17 FirstFirst ... 7151617
Results 321 to 326 of 326

Thread: Reverse-proxy NGINX + Apache on Directadmin powered server with CB 2.x

  1. #321
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,487
    Quote Originally Posted by webwerken View Post
    https://domain.com/roundcube gives me a 403
    https://hostname/roundcube is working without issues.
    Check nginx and apache logs for the particular domain and find lines related to roundcube. It's important to understand where 403 error is happening: at nginx or apache level.

    Then it might be a good idea to make sure that you still use default templates and /usr/local/directadmin/data/templates/custom/ should be empty as well as /usr/local/directadmin/custombuild/custom/

    And /etc/nginx/webapps.conf /etc/nginx/webapps.ssl.conf /etc/httpd/conf/extra/httpd-alias.conf should exist and be not empty.

    By the way

    - does it work /phpmyadmin and /webmail with your domains?
    - do you have issues with issuing certificates from Let's Encrypt for your domains?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  2. #322
    Join Date
    Jul 2019
    Posts
    7
    Quote Originally Posted by zEitEr View Post
    Check nginx and apache logs for the particular domain and find lines related to roundcube. It's important to understand where 403 error is happening: at nginx or apache level.

    Then it might be a good idea to make sure that you still use default templates and /usr/local/directadmin/data/templates/custom/ should be empty as well as /usr/local/directadmin/custombuild/custom/

    And /etc/nginx/webapps.conf /etc/nginx/webapps.ssl.conf /etc/httpd/conf/extra/httpd-alias.conf should exist and be not empty.

    By the way

    - does it work /phpmyadmin and /webmail with your domains?
    - do you have issues with issuing certificates from Let's Encrypt for your domains?
    Hi Alex,

    Thanks for reaching out!

    Just for testing I have set up a new domain. I had no problem generating the LetsEncrypt certificate. So domain/.well-known/acme-challenge is resolving.
    Also accessing domain/phpmyadmin or via an alias domain/pma is working.
    I have done no customizations on any template. Folder /usr/local/directadmin/data/templates/custom/ is empty and /usr/local/directadmin/custombuild/custom/ does not exist.

    I could find the request back only in the apache logs :
    Code:
    85.144.14.85 - - [19/Jul/2019:07:46:52 +0200] "GET /roundcube/ HTTP/1.0" 302 522 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0"
    85.144.14.85 - - [19/Jul/2019:07:46:52 +0200] "GET /roundcube/ HTTP/1.0" 403 556 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0"
    One other strange thing. If I try to access roundcube not over the symlink /roundcube, but instead directly over its directory name hostname/roundcubemail-1.3.9. I'll get the php file downloaded with a random name and a .dms extention.

    Hope this rings any bells.

    Yeb

  3. #323
    Join Date
    Jul 2019
    Posts
    7
    Quote Originally Posted by zEitEr View Post
    And /etc/nginx/webapps.conf /etc/nginx/webapps.ssl.conf /etc/httpd/conf/extra/httpd-alias.conf should exist and be not empty.
    Forgot to respond on that part. Yes all 3 config files are there and have, as far as I can see it, valid content.

  4. #324
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,487
    Something is really odd. I'd suggest that you open a ticket with DirectAdmin and ask them to check it on your server. If I connect to your server in order to investigate the case and fix it I will charge for this.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  5. #325
    Join Date
    Jul 2019
    Posts
    7
    Quote Originally Posted by zEitEr View Post
    Something is really odd. I'd suggest that you open a ticket with DirectAdmin and ask them to check it on your server. If I connect to your server in order to investigate the case and fix it I will charge for this.
    Yeah, odd it is. And the other thing is that both boxes suffer the same issue.

    I will send you a DM.

  6. #326
    Join Date
    Jul 2019
    Posts
    17

    Nginx (Reverse proxy) with imunify360

    I'm trying to compile Nginx as a reverse proxy and when compiling, I get the following error (Imunify360 is installed on the server):

    22 21:24:06 vps.macnethost-dz.info nginx[2459043]: nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /etc/modsecurity.d/000_i360_0.conf. Line: 14. Column: 349. Expecting a variable, got: : PERF_COMBINED}',phase:2,log,deny,status:403,t:none,t:urlDecode,t:normalizePath,t:lowercase,rev:'1',maturity:'1',severity:2,ctl:RuleEngine=on" in /etc/nginx/nginx-modsecurity-enable.conf:2

    Has any of you managed to configure Nginx (reverse proxy) with Imunifu 360?
    Thanks for your help.

Page 17 of 17 FirstFirst ... 7151617

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •