Recognition

No awards yet.

Posts

3 Posts
  • Published Question

    Nginx: Same root folder for multiple website different robots.txt

    Hello, I have a first website with this configuration: ``` server { server_name mywebsite.com; root /var/www/website/prod; ... } ``` and a second one like this with the same root folder: ``` server { ...
    Accepted Answer: Hello, Yes, this is doable with Nginx aliases. In each server block you could specify the following: location /robots.txt { alias /var/www/html/<^>site1<^>-robots.txt ; } And then just change the <^>site1<^> pa...
    1 By Adam0101 Nginx
  • Published Question

    nginx getimagesize from local server: 403

    Hello, I have a 403 error when trying to use the PHP function getimagesize on nginx based web server: list($imageWidth, $imageHeight) = getimagesize($imagesSource['Main']); Where $imageSource['Main'] is like: ``` ht...
    1 By Adam0101 PHP Nginx
  • Published Question

    Is it possible to point a subdomain to another droplet?

    Hello, I have 2 droplets, is it possible to point a subdomain to another droplet? Thanks, Vincent.
    1 By Adam0101 DNS