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


7

What will occur depends on how you have setup your web server. A web server may be setup to display an index page - that is a page that is displayed when a directory is accessed. In this case, the server will typically try all the files listed (e.g. index.htm, index.html, index.php, etc) in the order listed, and display the first one that is available, or ...


7

Try to make one setting default and other one turned on by condition: expires max; valid_referers none blocked something.com; if ($invalid_referer) { rewrite ^ /leech.jpg; expires epoch; }


5

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

Probably the server doesn't recognize the script as executable, and that's why it offers it as a downloadable file. These lines should be present in your Apache config. Note that the path may need to be changed for the .so modules, depending on your configuration: *nix: # -- if you're using PHP 5, uncomment this line to activate it LoadModule php5_module ...


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


3

In order to work with two names under one site you have Respond from Apache side on both Host request (you done it) Configure DNS for domain in order to have 2 URLs route to the correct host In short: nslookup foobar.com and nslookup www.foobar.com must return answers and answers to be identical Your impression about <Directory> container directive ...


3

You could use a reverse proxy via mod_proxy. The Apache Httpd configuration would be along these lines: ProxyPass /6666/ http://localhost:6666/ <Location /6666/> ProxyPassReverse /6666/ Order deny,allow Allow from all </Location>


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

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

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

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

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

Depending on the webserver you're running and its configuration, yes. It is very common that index.html is read from the folder the webserver points to if you don't add a filename in the URL. In Apache, for example, these filename(s) are defined in the configuration with the directive DirectoryIndex. In Microsoft IIS default.asp is a common default ...


2

I can't think of any reason why one would want this sort of setup, but to make the best of a bad situation, I would give the sites different docroots to avoid unnecessary duplication of content/URLs and make the sites more maintainable, e.g.: /var/www/site1 /var/www/site2 /var/www/site3 To share assets, you ought to just keep the assets in the main site's ...


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

You can use the error_reporting function at the top of each file to get round the fact that your server doesn't seem to be obeying what you've configured.


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

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


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