Tag Info

Hot answers tagged

4

The desktop subdomain doesnt seem to be setup in DNS. Nor is backend. You need to set A records for those subdomains in your DNS, which appears to be ultradns.net


2

Whenever I configure anything that accepts a DNS domain name, I include the trailing dot. Some systems reject this in their attempts to validate the input, which is a shame. Windows clients that rely on DNS devolution for AD-walking can be troublesome, if you have a two-part domain suffix. MS have documented workarounds. Reference resolv.conf... The ...


2

Yes, this is a vulnerability. No, servers should not stop offering content when queried using internet relative domain names. Trying to figure out if a name is internet relative or just relative is not a problem with a good stateless general solution. A bad stateless solution is to abolish the use of all relative naming. Relative names exist for valid ...


2

You need the break flag added to the rewrite rule, so that processing stops, and as this is inside a location block processing will continue inside that block: rewrite ^/petproject/?(.*)$ /$1 break; Note I also added /? to the matching pattern so that you don't end up with double slashes at the beginning of the url.


2

The configuration has the usual problem that generally happens with nginx. That is, using root directive inside location block. Try using this configuration instead of your current location blocks: root /home/me/Documents/site1; index index.html; location /petproject { alias /home/me/pet-Project/website; } This means that the default directory for ...


2

You can limit the scope of Require valid-user by using Limit/LimitExcept : <LimitExcept OPTIONS> Require valid-user </LimitExcept> See apache documentation on Limit


2

When a host can communicate with the LAN but not outside the LAN, the most likely misconfiguration to look for is an incorrect gateway IP address. The symptoms if the host with a misconfigured gateway is the server side of a TCP connection will be that SYN packets are received and accepted, but SYN-ACK packets cannot be delivered due to not having a correct ...


1

Add those lines in VirtualHost *:80: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Make sure you enabled mod_rewrite: a2enmod rewrite service apache2 restart Check result with wget: wget --spider domain.tld


1

Re-post comment from Pothi as CW If is not evil, if used outside a location block! Even inside a location block, it can be used with return and rewrite directives! Snippet from IfIsEvil page Directive if has problems when used in location context, in some cases it doesn't do what you expect but something completely different instead. In some cases it ...


1

Not an answer, but an approach to solving the problem: Reproduce the problem on your own using a development version of the app using the in-production web servers. Just making sure you cover that. Create a new hostname / CNAME entry and corresponding virtual host on the webserver, or if necessary for step 3, a separate HTTP server on a separate port. ...


1

You haven't defined a server name for your host. server { listen 80; server_name *.example.com example.com; return 301 https://$host$request_uri; } otherwise your host is not called. When you look to the example you can see that there is a server name defined in both cases.



Only top voted, non community-wiki answers of a minimum length are eligible