V
V
Vlad Avtomat2017-09-12 13:28:53
Nginx
Vlad Avtomat, 2017-09-12 13:28:53

What servername should I write in my case or what else should I write in the config?

I want to raise the laravel server, I created a file in the site-enabled folder, I write in it

server {
    listen  443 ssl;
    ssl_certificate     /etc/ssl/certs/dev.site.com.crt;
    ssl_certificate_key /etc/ssl/private/dev.site.com.key;
    ssl_trusted_certificate /etc/ssl/certs/ca6.server1.free.crt;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5:!kEDH;
    keepalive_timeout   70;


        root /home/user/www/dev/project_laravel/project/public;
        index index.php index.html index.htm;

        location /project_laravel/project {
                try_files $uri $uri/ /index.php?$query_string;
        }
}

After that, we apply the changes:
service nginx reload
Well, after going to https://dev.site.com/project_laravel/project , it says 403, in general, nothing has been configured.
Please tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-09-12
@BorisKorobkov

1. The site.com domain does not belong to you (however, like anyone else), you cannot use it.
For local development, use localhost
2. Server_name must be a domain, not a URL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question