Apache warns that my self-signed certificate is a CA certificate

Short way (e.g. with OpenSSL 1.1.0f and Apache 2.4.37): openssl genrsa -out notEncodedPk.key 3072 openssl req -new -out website.csr -sha256 -key notEncodedPk.key openssl x509 -req -in website.csr -days 365 -signkey notEncodedPk.key -out website.cert -outform PEM genrsa generates a 3072 bit RSA-Key. (The system should be online for some time to have good data in /dev/(u)random … Read more

Generating CSR for multi-domain [closed]

For an X.509 certificate to support multiple domains, it must use multiple Subject Alternative Name DNS entries, according to RFC 2818 (HTTP over TLS) (or RFC 6125): If a subjectAltName extension of type dNSName is present, that MUST be used as the identity. Otherwise, the (most specific) Common Name field in the Subject field of … Read more

Configure Apache with multiple ProxyPass

Put the ProxyPass rules in the correct order as required if you want to evaluate /webhook1 rule and send it to 8080, else send the traffic to 8077 the rules should be on the following order ProxyPass /webhook1 http://localhost:8080 ProxyPassReverse /webhook1 http://localhost:8080 ProxyPass / http://localhost:8077 ProxyPassReverse / http://localhost:8077

.htaccess File Options -Indexes on Subdirectories

The correct answer is Options -Indexes You must have been thinking of AllowOverride All https://httpd.apache.org/docs/2.2/howto/htaccess.html .htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and … Read more

Redirect HTTP to HTTPS:PORT in Tomcat

You can do it to every app deployed to tomcat by adding this to the end of tomcat_dir/conf/web.xml: <security-constraint> <web-resource-collection> <web-resource-name>Entire Application</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <!– auth-constraint goes here if you requre authentication –> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> So you don’t have to change it on the web.xml of your webapp. That should work, assuming you … Read more

Use a subdirectory as root with htaccess in Apache 1.3

Finally got it, after a week of trying. RewriteRules really are voodoo… RewriteEngine On # Map http://www.example.com to /jekyll. RewriteRule ^$ /jekyll/ [L] # Map http://www.example.com/x to /jekyll/x unless there is a x in the web root. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/jekyll/ RewriteRule ^(.*)$ /jekyll/$1 # Add trailing slash to directories … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)