Sunday, October 26, 2014

Re: using cakephp with nginx

The only way I know of (off the top of my head) to use the same ip for multiple sites with nginx (besides the working config I already gave you)  is to change the port your project listens on. Keep one at 80 and change the other to something like 8080 (or some other port not being used). Your sites would be accessible at 192.168.1.123 and 192.168.1.123:8080. My advice at this point would be 
  1. Take Saline's advice and google nginx wildcards and regular expressions.
  2. Use named-based virtual hosting as I explained how to do. 
  3. Listen on different ports 
  4. Go back to Apache
There is no more I can help you with. Good luck with your project. 

On Sun, Oct 26, 2014 at 10:00 AM, flashios09 <flashios09@gmail.com> wrote:
can you give an example of config please ?

let's say that my root is /home/sites/
my server_ip is 192.168.1.123

and i have 2 cakephp_projects

what i have to write in the config file to have access to my 2 projects using this URLs
my_server_ip/my_cakephp_project1, my_server_ip/my_cakephp_project2 ?

P.S:
i want to test it online
thanks

View this message in context: Re: using cakephp with nginx
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/saCWNRwkWhs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: