Skip to main content
11 votes
Accepted

In what path I can find the .crt file for Let's Encrypt SSL?

After successfully running Lets Encrypt for example.com, the latest certificate files can be found in the following location: /etc/letsencrypt/live/example.com/privkey.pem /etc/letsencrypt/live/...
Stephen Ostermiller's user avatar
6 votes

In what path I can find the .crt file for Let's Encrypt SSL?

Quick Answer ubuntu: /etc/letsencrypt/live/domain.com/cert.pem (Certificate) /etc/letsencrypt/live/domain.com/privkey.pem (Private Key) Details You are looking for file like cert.crt, actually ...
Firas Abd Alrahman's user avatar
5 votes
Accepted

Is it possible to block cookies that are set by externally hosted content?

You have no control over cookies that might be set by an external resource on a different domain. These (third party) cookies are set on the "external domain", not the domain of your site. Fundamental ...
MrWhite's user avatar
  • 42.8k
4 votes

Basic DNS and URL Redirect for just a web server

You want an A record on host www pointing at your IP address. That will take care of www.example.com. For example.com -> www.example.com you need a redirect. As noted in the comments, DNS on its own ...
Tim Fountain's user avatar
  • 4,454
3 votes
Accepted

How to configure reverse DNS?

It is indeed something only the ISP can do. Reverse DNS authority is delegated per octet. For example for IPv4 address 185.54.92.1 the reverse DNS record name is 1.92.54.185.in-addr.arpa. That is part ...
Sander Steffann's user avatar
3 votes

Is "Legacy Backup" in WHM necessary when you're running out of space?

Your first screenshot answers to your question: cPanel & WHM will deprecate the Legacy Backup system in the near future. We strongly recommend that you upgrade to the new Backup system. As ...
Esa Jokinen's user avatar
3 votes

Is "Legacy Backup" in WHM necessary when you're running out of space?

Firstly, if you are running out of disk space you potentially have more problems than legacy backups. As someone who has waited too long to upgrade a server, I urge you to handle it sooner rather ...
Steve's user avatar
  • 8,458
3 votes

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I agree with user 'closetnoc' who replied at [2015-Aug-2 00:24:36Z] in response to the original post that wrote "The 000-default.conf site is a catch-all for any request the server does not have a ...
kman's user avatar
  • 31
3 votes

Laravel Detailed Error Page Lost

The best way is to go to this directory: yourproject/app/storage/logs. Inside the logs folder. you will see a laravel.log file. This is like a stack trace which tells you how your programs is ...
meta alpha's user avatar
3 votes
Accepted

Are Plesk or cPanel helpful for bringing up new VPS servers?

Plesk and cPanel are for managing shared hosting. You would install one of them if you had several people hosting websites on the same machine or VPS. I would not recommend installing them if only ...
Stephen Ostermiller's user avatar
3 votes

nginx configure error pages

This seems to be resolved with the following configuration, accepting your comments for improvement. server { server_name php.willtech.net.au; listen 80; port_in_redirect off; access_log ...
Willtech's user avatar
  • 265
2 votes

My php.ini configuration is being ignored - how can I override the error reporting level in my PHP scripts?

If php-fpm runs as a daemon, restart it to reload php.ini. You do not need to restart apache.
RadduPB's user avatar
  • 21
2 votes

Configure Apache to redirect all requests to index.html?

I do mine with a .htaccess file. In the DocumentRoot for the site, I create the .htaccess file and it in goes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
ivanivan's user avatar
  • 121
2 votes

How can the index.html file be served from a sub directory of the DocumentRoot without using system level links?

You may want the mod_rewrite solution that @Stephen suggests, however, also consider DirectoryIndex (depending on your requirements). The DirectoryIndex document tells Apache which file to serve when ...
MrWhite's user avatar
  • 42.8k
2 votes

Explicit differences between <Directory> and <DirectoryMatch> (and other <*Match> directives)

The difference is in the parameter type allowed: <Directory directory-path> ... </Directory> vs <DirectoryMatch regex> ... </DirectoryMatch> DirectoryMatch is a superset, ...
Patrick Mevzek's user avatar
2 votes

Reverse-proxy to hide iframe origin. How does that work?

I think your logic is sound. If you only have access to the server providing the iframe content, I don't see how you can run a reverse proxy. I can see the client website going to for example, ...
Chris Hayes's user avatar
2 votes

Trying to understand the difference between two Apache SSL config statements

Based on https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslprotocol: All This is a shortcut for "+SSLv2 +SSLv3 +TLSv1" or - when using OpenSSL 1.0.1 and later - "+SSLv2 +SSLv3 +TLSv1 +...
Patrick Mevzek's user avatar
2 votes

Basic DNS and URL Redirect for just a web server

There is no such thing as a "URL redirect record" in DNS. To redirect a domain, you need enter the IP address of a web server that is configured to issue an HTTP redirect. I would take the ...
Stephen Ostermiller's user avatar
2 votes
Accepted

HTTP to HTTPS redirect for a specific domain through web.config

<match url="(https?:\/\/(.+?\.)?domain1\.example I believe the url attribute matches URL-paths only, not the absolute URL, so this will never match. But if it did match, it's also matching https, ...
DocRoot's user avatar
  • 4,297
2 votes

Reverse-proxy to hide iframe origin. How does that work?

I would recommend switching from iFrame to JavaScript widgets to write this content into other sites. Rather than give other sites code for an iFrame: <iframe src="https://example.com/some-cool-...
Stephen Ostermiller's user avatar
2 votes
Accepted

Does a vhost specific .conf settings over-ride the ssl.conf settings?

Does the virtual host specific config over-ride the ssl.conf ? Yes. The question is not where the directives are nor in what order, the question is where each directive sits in which section. From ...
Patrick Mevzek's user avatar
2 votes

Deny non-local Apache requests that match a specific URL pattern

You can create a list of allowed IPs and then compare the page or directory accessed against it. SetEnvIfNoCase Remote_Addr 192.0.2.4 allow_ip #AllowedServer1 SetEnvIfNoCase Remote_Addr 192.0.2.6 ...
Luis Alberto Barandiaran's user avatar
1 vote

Explicit differences between <Directory> and <DirectoryMatch> (and other <*Match> directives)

Are there any other differences between the Match and non-Match directives? Not strictly a difference between the two regex versions (<Directory ~ and <DirectoryMatch), but some directives, ...
MrWhite's user avatar
  • 42.8k
1 vote

How can the index.html file be served from a sub directory of the DocumentRoot without using system level links?

Your rewrite rule is close. You just need to restrict it a bit more. RewriteRule ^\/?$ /html/index.html [L] The \/ matches a literal slash, which is the desired URL for the home page. It is ...
Stephen Ostermiller's user avatar
1 vote

Why doesn't Apache allow access to files outside the web root --from within index.html?

This doesn't really have anything to do with Apache or server-side permissions, but more to do with how the browser resolves relative client-side URLs (according to RFC 3986). I'm assuming /html is ...
MrWhite's user avatar
  • 42.8k
1 vote
Accepted

Nginx deny-all fails to execute PHP code in 403.html

The problem is the location itself. nginx chooses one location process a request. In the case of /Src/403.html, the location = /Src/404.html block takes precedence over the location ~ \.(html|php)$ ...
Richard Smith's user avatar
1 vote
Accepted

Access resources of secondary server running different port apache2

this is how to fix this: sudo nano /etc/apache2/apache2.conf Put in this code at the bottom: . <IfModule mod_headers.c> Header set Access-Control-Allow-Origin: "http://example.org" ...
Typewar's user avatar
  • 121
1 vote

Using nginx to host roundcube on root domain, while hosting phpmyadmin from sub directory

When you add another root parameter in nginx, it treats that as the literal root for that specific location. For example: location ^~ /phpmyadmin { root /www/phpmyadmin; } When you request /...
JorgenPhi's user avatar
1 vote

Redirect 301 to a folder on the server?

While there is some overlap between the file system and the URL, that overlap only exists within the web space. /var/www/web/public_html is not within the web space. You cannot use this specification. ...
closetnoc's user avatar
  • 32.9k
1 vote
Accepted

What does mask spring authentication nginx configuration do?

I don't know what it exactly does, but I assume you want to rename the parameters. The parameters have to be POSTed anyway, so there's no way around that, but if you want to rename to something else, ...
Erik Pragt's user avatar

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