vansunet

vansunet

Member Since 1 Week Ago

Experience Points 50
Experience Level 1

4,950 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

14 May
1 week ago

vansunet started a new conversation How To Set Multiple Domain Names On 1 Nginx Server ?

Hello, I installed nginx under new ubuntu 18 installation under AWS and I want to make multiple domain names on 1 server. Fot this

I created at freenom new hosting demo1.myaccount-apps.tk and with whatsmydns service I check that it is resolved ok: https://www.whatsmydns.net/#CNAME/demo1.myaccount-apps.tk I installed nginx with "Welcome to nginx!" greeting page by http://ec2-NN-NN-NN-NN.us-east-2.compute.amazonaws.com/ url

Created /var/www/votes.com/index.php file with text File /var/www/votes.com/index.php index

I created file /etc/nginx/sites-available/votes.com with text: pstream votes-backend { # Lets you define a group of servers server unix:/var/run/php7.2-fpm.sock; }

server { listen 80;

root /var/www/votes.com; index index.php;

server_name demo1.myaccount-apps.tk;

We keep this block, because it doesn't make sense to pass

everything to PHP.

location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php index.php;

}

location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; # this defines a regular expression to separate the SCRIPT_FILENAME and PATH_INFO for later use try_files $uri =404; # OR Set cgi.fix_pathinfo=0 in php.ini (for security) fastcgi_pass votes-backend; # OR unix:/var/run/php7.2-fpm.sock OR 127.0.0.1:9000 fastcgi_index index.php; # appends index.php to a URI ending with a slash include fastcgi_params; }

} editied /etc/hosts (I am not sure if i have to edit it): 127.0.0.1 localhost 127.0.0.2 localhost test.com 127.0.0.3 demo1.myaccount-apps.tk created symbol link : sudo ln -s /etc/nginx/sites-available/votes.com /etc/nginx/sites-enabled/ restart nginx service and php: sudo service nginx restart sudo systemctl restart php7.2-fpm Check The Syntax Of nginx Files sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful check that /etc/nginx/nginx.conf has links to /etc/nginx/sites-enabled/: user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf;

events { worker_connections 768; # multi_accept on; }

http {

    ...
    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

} but running http://demo1.myaccount-apps.tk/ in browser I got 404 error also running curl http://demo1.myaccount-apps.tk/ in console of my server I got empty line, but I expected content of my /var/www/votes.com/index.php file?

What is wrong and how to fix it ?

Thanks!