Tag Info

Hot answers tagged


What you want is called virtual hosting. And it works much better than what you described! Just add multiple server blocks with different server_name and root directories. One server block per domain name. Note that only one of them can be marked as default_server but apart from that all blocks can look identical. The best way to do this is by creating one ...


You can achieve this easily using server blocks in Nginx to create multiple 'virtual hosts', each with a different HTTP configuration. This works by Nginx processing your request differently depending on which URL you used to reach the server. Put simply, to reach siteone.com you need to create a server block with a server_name value of siteone.com. Each ...


upload your video via sftp, ftp or ssh. Move the video on a place with access/read permissions on the server... if your main site on the www.mydomain.com is /var/www/wordpress/ put the file on this directory. The URL is like www.mydomain.com/video.mp4. all depends of the directory permission on your site (ngix configuration).


After mucking around for hours, it finally dawned on me that the timestamp in /var/log/messages was 2 hours out of sync. This, of course, has repercussions when it comes to fail2ban figuring out findtime. $ timedatectl Local time: Tue 2015-08-18 23:50:11 CEST In /var/log/messages: Aug 18 21:50:11 ip-172-1-6-5 systemd: Started Time & Date ...


I had a similar issue with a medium instance but it ended up being an issue with the theme I was using. Change the theme to a default WP theme to see if the problem persists. There was a function in the theme's function.php file that was not working properly. Deleting the function fixed the posting issue for me. The idea is narrow down if the theme or even ...


These two steps will get you 90%+ of the way to a secure hosting system (from the point of view of preventing cross-site escalation attacks): Step 1: don't run everything as www-data Use a system like php-fpm to run each site in its own user. That way, a compromise on one account can't automatically read the contents of every other site, such as database ...


With Nginx, you should create as many site config files as required and simply modify the server_name and root sentences to map external domains to their content and code.

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