Note that there are some explanatory texts on larger screens.

plurals
  1. POnginx: [emerg] unknown directive " " in /etc/nginx/sites-enabled/example.com:3
    primarykey
    data
    text
    <p>I have followed this website <a href="http://raspberrypihelp.net/tutorials/24-raspberry-pi-webserver" rel="noreferrer">http://raspberrypihelp.net/tutorials/24-raspberry-pi-webserver</a> to setup the HTTP server nginx on my Raspberry Pi and try to setup a site call <strong>example.com</strong>. But when I run <code>sudo service nginx restart</code>, it said</p> <blockquote> <p>Restarting nginx: nginx: [emerg] unknown directive " " in /etc/nginx/sites-enabled/example.com:3</p> </blockquote> <p>Here is the code in <strong>example.com</strong>.</p> <pre><code> server { server_name example.com 192.168.1.88; access_log /srv/www/example.com/logs/access.log; error_log /srv/www/example.com/logs/error.log; root /srv/www/example.com/public/; location / { index index.php index.html index.htm; try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /srv/www/example.com/public$fastcgi_script_name; } location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_params; } location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } } location /phpMyAdmin { rewrite ^/* /phpmyadmin last; } } </code></pre> <p>I am just following the steps but it can't run successfully.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload