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
  • 43.1k
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,504
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
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
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,556
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
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

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
  • 43.1k
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

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
  • 43.1k
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,317
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
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

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 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

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
1 vote

How to update composer packages on plesk

Perhaps the problem lies in the settings or access permissions. Point number two: isn't it the other way around? In the "Version" column, your current version is shown, and in the "...
Evgeny Yudin's user avatar
1 vote
Accepted

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally

Edit the following file with your favorite text editor as root, e.g.: sudo vim /etc/apache2/apache2.conf Go to the end of this file, and add this line: ServerName 127.0.0.1 just before the VIM ...
Vlastimil Burián'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
  • 43.1k
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
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

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

I have run a production Apache on FreeBSD since 1995 and recently was installing a LAMP Apache on Debian and ran across this a2dissite 000-default.conf command and so did some research. Personally, I ...
SJohn's user avatar
  • 11

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