9

Just as a matter of explanation for future users. Your 000-default.conf file is a catch-all site and should be left alone. It is good for security. It can be frustrating when a site configuration does not work and the default site is served. I get it. Still, leave it alone. Many people are unaware of why the default site exists. Here is a bit of an ...


6

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/example.com/chain.pem /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/cert.pem cert.pem: The private certificate for your domain ...


4

Edit app/config/app.php and make sure debug is set to true: 'debug' => true,


4

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 cannot redirect, but many DNS providers offer some sort of redirection service. The capabilities of these will vary a bit between providers. You may be able to ...


4

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 browser/cookie security prevents you from accessing these cookies (client-side) and the browser will never send these cookies back to your domain, so you will ...


3

As Stephen Ostermiller says, in this case you want to add "conf" to the line beginning with "text/plain" in: includes/mime.types In other cases though it may not be this simple. When you upload a file, mediawiki executes the PHP function mime_content_type("my_uploaded.wth"); which takes the result and looks it up in includes/mime.types. If you find ...


3

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 implemented and what specific type of error it is. You just need to copy the error message and search on Google.


3

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 letsencrypt uses cert.pem for your certificate and privkey.pem for private key. So they always use .pem extension which can be confusing.


3

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 than later as if you require migration, it is impossible without spare disk space. Legacy backup is as the name states, an older legacy system. If you have the ...


3

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 your Backup Configuration shows enabled, you've already done this. It's not only safe but recommended to stop using the Legacy Backup. When removed, it will ...


3

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 of the 92.54.185.in-addr.arpa zone. The holder of 185.54.92.0/24 is the one who maintains that zone. That will be your ISP. If your ISP doesn't let you provide ...


2

Supposing your server space supports PHP, you can: 1) Place into the public_html folder a file called idious-counter.php with this code into it: <?php define("COUNTER_START_VALUE", 0); define("COUNTER_LOG", "idious-counter.log"); //name of file you want to use to save the counter value /******************************************************************...


2

To be able to access a local resource as if it were the main site you need to do two things: Edit your hosts file such that your computer thinks that your domain name is served by localhost. Your hosts file should contain a line with 127.0.0.1 in it and your host name would need to be added to that line, something like: 127.0.0.1 localhost ...


2

Apache applies configurations for directories to a request from smallest to largest. In essence the <Directory /> section specifies virtual host defaults; since every other possible directory will have that portion in its path. If multiple (non-regular expression) sections match the directory (or one of its parents) containing a document, then ...


2

set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib'); You place the library/extension files wherever you want to place them (wherever is appropriate for your server setup or web application) - this I believe is what the example above is showing you. Replace phpseclib with the absolute server path of where you decide to save the phpseclib ...


2

The problem is that code inside “extension tags” like <syntaxhighlight> is not parsed, which is why the {{{code}}} is not replaced with the value of the code parameter. What you need to use is to use {{#tag}} parser function: {{#tag:syntaxhighlight|{{{code}}}|lang=java|style=background-color:lightgray; border:1px dashed gray;}}


2

You can just use the same MX records pointing to multiple mail servers. Here is how we do it: Primary Domain For Email: master.example A - mail.master.example - ip of master domain. MX Records pointing to mail.master.example Other Domain Names MX Records pointing to mail.master.example In other words all you do is re create the MX records in your ...


2

You didn't write ; at the end of the line. :) I've done the same mistake - and got the same alert.


2

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 configuration file for". And, I think we can make use of such 'catch-all site' as a last resort to safeguard and to enhance the overall security. The thing I ...


2

edit and createpage are needed to edit a userpage (see list of permissions). There is no core permission to differentiate own pages from others' pages, but extensions might add one (e.g. UserPageEditProtection does, although it does not seem to be up-to-date).


2

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 approach of putting the same IP address for both your apex record and your www record: .example.com A 192.0.2.4 www.example.com A 192.0.2.4 Then on your webserver ...


2

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 you request a directory. This often defaults to index.html in the directory being requested, however, you can specify any file, anywhere. For example: ...


2

The difference is in the parameter type allowed: <Directory directory-path> ... </Directory> vs <DirectoryMatch regex> ... </DirectoryMatch> DirectoryMatch is a superset, feature wise as you will be able to code any path as a regex. The opposite is not true. Directory ~ is probably a late addition. Based on a commit found in ...


2

<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, which is not what you require. Try just adding another condition to your original rule that checks the HTTP_HOST for the specific domain. For example: <add ...


2

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 +TLSv1.1 +TLSv1.2", respectively. So first, there would be a need to know which OpenSSL version you use. Let us rewrite your statements: 1) before OpenSSL 1.0.1: ...


2

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, localhost:3000, and have nginx or something reroute that to your server, but without access to the client server I don't see how you can do that. The only other idea ...


2

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-content.html"></iframe> you could give other sites a JavaScript snippet that would write that data into the page: <script src="https://example.com/...


1

The exact rules for when a wild card is match are specified in RFC 1034, but the rules are neither intuitive nor clearly specified. This has resulted in incompatible implementations and unexpected results when they are used. Your DNS should look like this A NAME (blank or @ on some systems) FQDN domain.com IP A NAME www FQDN www.domain.com IP A NAME ...


1

From what I've uncovered on the Windows version of Zend Server, the .user.ini file must be in the actual folder of the executing script – being in the document root is not adequate. It's unfortunate and often inconvenient, but I haven't found another solution thus far.


1

You will want to create a virtual host file for the the webmail. Create a new file: /etc/apache2/sites-available/example.com.conf with contents like: <VirtualHost *:80> Servername example.com Alias /program/js/tiny_mce/ /usr/share/tinymce/www/ Alias / /var/lib/roundcube RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] ...


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