ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Emsanator
    3. Best
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 17
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Installing Guacamole on CentOS 7

      @aaronstuder & @scottalanmiller

      I installed on Fedora 27 and I get same errors.

      I prepared a GIF to better explain it.
      0_1522756692096_GuacamoleServer.gif

      posted in IT Discussion
      E
      Emsanator
    • RE: If you are new drop in say hello and introduce yourself please!

      @scottalanmiller

      Hi!

      My name is Emre and It is so nice to be in this beautiful community!

      posted in Water Closet
      E
      Emsanator
    • 302 Moved Error

      0_1522870340806_Sun1.jpg

      I have 2 VM for a Nextcloud and publishing my internet sites. These two servers are connected with ProxyPass.

      (vhost.conf for 192.168.1.2)

      <VirtualHost 192.168.1.7:8181>
      ServerName domain.com
      ServerAlias www.domain.com
      ServerAdmin [email protected]
      DocumentRoot /home/username/public_html/
      UseCanonicalName Off
      ScriptAlias /cgi-bin/ /home/username/public_html/_SubDomains/domain/cgi-bin/
      
      # Custom settings are loaded below this line (if any exist)
      # Include "/usr/local/apache/conf/userdata/username/domain.com/*.conf
      
      <IfModule mod_userdir.c>
      	UserDir disabled
      	UserDir enabled username
      </IfModule>
      
      <IfModule mod_suexec.c>
      	SuexecUserGroup username username
      </IfModule>
      
      <IfModule mod_suphp.c>
      	suPHP_UserGroup username username
      	suPHP_ConfigPath /home/username
      </IfModule>
      
      ProxyPass / http://192.168.1.7/
      ProxyPassReverse / http://192.168.1.7/
      
       </VirtualHost>
      

      Nginx:

      # Virtual host file starts here
      
      server {
      listen 192.168.1.2:443;
      access_log /var/log/nginx/access.domain.com.log;
      error_log /var/log/nginx/error.domain.com.log;
      server_name domain.com www.domain.com;
      root /home/domain/public_html;
      
      ssl                  on;
      ssl_certificate      /etc/pki/tls/certs/domain.com.bundle;
      ssl_certificate_key  /etc/pki/tls/private/domain.com.key;
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;
      ssl_prefer_server_ciphers   on;
      
      ssl_session_cache   shared:SSL:20m;
      ssl_session_timeout 60m;
      
      add_header Strict-Transport-Security "max-age=31536000";
      add_header X-Content-Type-Options nosniff;
      
      location / {
      location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh)\$ {
      expires 7d; #Comment this out if you are using the apache backend cache-control/expires headers.
      try_files \$uri \@backend;
      }
      error_page 405 = \@backend;
      error_page 500 = \@custom;
      add_header X-Cache "HIT from Backend";
      proxy_pass http://192.168.1.2:8181;
      include proxy.inc;
      }
      location \@backend {
      internal;
      proxy_pass http://192.168.1.2:8181;
      include proxy.inc;
      }
      location \@custom {
      internal;
      proxy_pass http://192.168.1.2:8181;
      include proxy.inc;
      }
      location ~ .*\.(php|jsp|cgi|pl|py)?\$ {
      proxy_pass http://192.168.1.2:8181;
      include proxy.inc;
      }
      location ~ /\.ht {
      deny all;
      }
      }
      
      # Virtual host file ends here
      

      I am getting this error while loading the file:

          PUT            XHR              https://domain.com/@custom           [HTTP/1.1 302 Moved Temporarily 0ms]
      

      There's only trouble adding files. Display, delete actions are no problem.

      What could be the reason for this?
      Also, no problem if I use the local IP address.
      Thank you.

      posted in IT Discussion nginx web reverse proxy
      E
      Emsanator
    • 1 / 1