Nginx-After installing Vagrant Larval/homestead, the startup virtual machine cannot be index. Segmentfault

Source: Internet
Author: User
Keywords Php vagrant laravel homestead nginx
Tags imap phpinfo sendfile
After the virtual machine is loaded, the Vagrant up virtual machine starts, and the access Set home address only displays welcome to Nginx, unable to render the phpinfo ();

This is nginx.conf:

User vagrant;worker_processes auto;pid/run/nginx.pid;events {worker_connections 768; # multi_accept on;}        HTTP {# # # Basic Settings # # sendfile on;        Tcp_nopush on;        Tcp_nodelay on;        Keepalive_timeout 65;        Types_hash_max_size 2048;        # Server_tokens off;        Server_names_hash_bucket_size 64;        # server_name_in_redirect off;        Include/etc/nginx/mime.types;        Default_type Application/octet-stream;                # # #Server Settings # # Server {Listen 80;                server_name Fancygo.app; Location ~ \.                        (php|html|htm) $ {fastcgi_pass unix:/run/php-fpm.sock;                        Fastcgi_index index.php;                        Include fastcgi.conf;                        Root/home/vagrant/code/fancygo/public; }} # # # SSL Settings # # Ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # dropping SSLv3, Ref:poodle ssl_prefer_server_ciphers on;        # # # # Logging Settings # # Access_log/var/log/nginx/access.log;        Error_log/var/log/nginx/error.log;        # # # gzip Settings # # gzip on;        Gzip_disable "Msie6";        # gzip_vary on;        # gzip_proxied any;        # Gzip_comp_level 6;        # gzip_buffers 8k;        # Gzip_http_version 1.1; # gzip_types Text/plain text/css application/json application/javascript text/xml application/xml Application/xml+rss        Text/javascript;        # # # Virtual Host configs # # include/etc/nginx/conf.d/*.conf;            #include/etc/nginx/sites-enabled/*; } #mail {# # # See Sample Authentication Script at:# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript# # # # Auth_http localhost/auth.php;# # pop3_capabilities "TOP" "USER"; # # Imap_capabilities "IMAP4rev1" "U             IDPLUS "; # # server {#  Listen localhost:110;# protocol pop3;# proxy on;#}## server {# Listen localhost:143;# protocol imap;# proxy on;#}#}

This is my homestead.yaml:

---ip: "192.168.10.10"memory: 2048cpus: 1provider: virtualboxauthorize: ~/.ssh/id_rsa.pubkeys:    - ~/.ssh/id_rsafolders:    - map: ~/Sites/FancyGo      to: /home/vagrant/Code/FancyGosites:    - map: FancyGo.app      to: /home/vagrant/Code/FancyGo/public      databases:    - homestead# blackfire:#     - id: foo#       token: bar#       client-id: foo#       client-token: bar# ports:#     - send: 50000#       to: 5000#     - send: 7777#       to: 777#       protocol: udp

Would you please help to see where the problem is? How to configure Nginx?

In addition, it is very strange that I even the nginx off, access to set the map address can also appear "Welcome to Nginx" I really day dog ~ Originally is the address of the map corresponding IP address is "127.0.53.53", What a Ghost ~

Reply content:

After the virtual machine is loaded, the Vagrant up virtual machine starts, and the access Set home address only displays welcome to Nginx, unable to render the phpinfo ();

This is nginx.conf:

User vagrant;worker_processes auto;pid/run/nginx.pid;events {worker_connections 768; # multi_accept on;}        HTTP {# # # Basic Settings # # sendfile on;        Tcp_nopush on;        Tcp_nodelay on;        Keepalive_timeout 65;        Types_hash_max_size 2048;        # Server_tokens off;        Server_names_hash_bucket_size 64;        # server_name_in_redirect off;        Include/etc/nginx/mime.types;        Default_type Application/octet-stream;                # # #Server Settings # # Server {Listen 80;                server_name Fancygo.app; Location ~ \.                        (php|html|htm) $ {fastcgi_pass unix:/run/php-fpm.sock;                        Fastcgi_index index.php;                        Include fastcgi.conf;                        Root/home/vagrant/code/fancygo/public; }} # # # SSL Settings # # Ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # dropping SSLv3, Ref:poodle ssl_prefer_server_ciphers on;        # # # # Logging Settings # # Access_log/var/log/nginx/access.log;        Error_log/var/log/nginx/error.log;        # # # gzip Settings # # gzip on;        Gzip_disable "Msie6";        # gzip_vary on;        # gzip_proxied any;        # Gzip_comp_level 6;        # gzip_buffers 8k;        # Gzip_http_version 1.1; # gzip_types Text/plain text/css application/json application/javascript text/xml application/xml Application/xml+rss        Text/javascript;        # # # Virtual Host configs # # include/etc/nginx/conf.d/*.conf;            #include/etc/nginx/sites-enabled/*; } #mail {# # # See Sample Authentication Script at:# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript# # # # Auth_http localhost/auth.php;# # pop3_capabilities "TOP" "USER"; # # Imap_capabilities "IMAP4rev1" "U             IDPLUS "; # # server {#  Listen localhost:110;# protocol pop3;# proxy on;#}## server {# Listen localhost:143;# protocol imap;# proxy on;#}#}

This is my homestead.yaml:

---ip: "192.168.10.10"memory: 2048cpus: 1provider: virtualboxauthorize: ~/.ssh/id_rsa.pubkeys:    - ~/.ssh/id_rsafolders:    - map: ~/Sites/FancyGo      to: /home/vagrant/Code/FancyGosites:    - map: FancyGo.app      to: /home/vagrant/Code/FancyGo/public      databases:    - homestead# blackfire:#     - id: foo#       token: bar#       client-id: foo#       client-token: bar# ports:#     - send: 50000#       to: 5000#     - send: 7777#       to: 777#       protocol: udp

Would you please help to see where the problem is? How to configure Nginx?

In addition, it is very strange that I even the nginx off, access to set the map address can also appear "Welcome to Nginx" I really day dog ~ Originally is the address of the map corresponding IP address is "127.0.53.53", What a Ghost ~

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.