Hello! I’m DoanNam.
Please help me! I used cakephp and nginx.
My vhost.conf file as follows: #start vhost.conf <pre> server { listen 80; server_name phimcucnhanh.net;
root /www/website/phimcucnhanh.net/app/webroot/;
index index.php;
access_log /www/website/phimcucnhanh.net/log/access.log;
error_log /www/website/phimcucnhanh.net/log/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
server { listen 80; server_name m.phimcucnhanh.net;
root /www/website/m.phimcucnhanh.net/app/webroot/;
index index.php;
access_log /www/website/m.phimcucnhanh.net/log/access.log;
error_log /www/website/m.phimcucnhanh.net/log/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params2;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param SCRIPT_FILENAME /www/website/phimcucnhanh.net/app/webroot/index.php;
}
} </pre> #End vhost.conf
You go to the following link: “http://m.phimcucnhanh.net/ban-cung-lop-my-old-classmate-2014” Then the link: “http://phimcucnhanh.net/ban-cung-lop-my-old-classmate-2014” will see the error message: <pre> Stack Trace / Www / sites / m.phimcucnhanh.net / lib / Cake / Routing / Dispatcher.php line 186 → Controller-> invokeAction (CakeRequest) / Www / sites / m.phimcucnhanh.net / lib / Cake / Routing / Dispatcher.php → line 161 Dispatcher-> _invoke (CommonController, CakeRequest, CakeResponse) / Www / sites / m.phimcucnhanh.net / lib / Cake / Core / Object.php line 97 → Dispatcher-> dispatch (CakeRequest, CakeResponse, array) </pre>
This proves the link “http://phimcucnhanh.net/ban-cung-lop-my-old-classmate-2014” it is not running in / www/website/phimcucnhanh.net / but if you press f5 a few times is off errors.
I’ve lost so many days yet to fix it.
I look forward to the help from you! Thank you very much
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi!
I’m still not sure exactly what your issues is. The Nginx configuration looks fine to me, and if I visit either version of you site, I see the content:
Desktop: http://i.imgur.com/PuEY05X.jpg Mobile: http://i.imgur.com/t2B2xfG.png
I’ve reloaded it multiple times without error. When exactly do you see that error? When it happens, what do you see in <code>/www/website/phimcucnhanh.net/log/error.log</code> ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.