Fermé

Nginx multiple location configuration

I have little experience with nginx so I'm after someone who can setup this up correctly.

I have the following directory structure (two projects):

/var/www/api

/var/www/client

When the URL http://localhost is visited it should serve files from the /var/www/client directory

When the URL http://localhost/api is visited it should serve files from the /var/www/api directory

Both projects contain both PHP files and static files. If a static file is not found it should pass the route to the corresponding [url removed, login to view] file.

For eg:

http://localhost routes to /var/www/client/[url removed, login to view]

http://localhost/css/[url removed, login to view] delivers /var/www/client/css/[url removed, login to view]

http://localhost/made/up/url routes to /var/www/client/[url removed, login to view]

http://localhost/api routes to /var/www/api/[url removed, login to view]

http://localhost/api/css/[url removed, login to view] delivers /var/www/api/css/[url removed, login to view]

http://localhost/api/made/up/url routes to /var/www/api/[url removed, login to view]

I will provide the nginx configuration file as it stands ready to modify for the above specification.

Compétences : Nginx, PHP

Voir plus : nginx location, nginx php multiple location, nginx, nginx configuration, configuration, modify location, file multiple files, php localhost, nginx modify, nginx setup php, routes, php file multiple, url 301, static php projects, css location, nginx setup, configuration setup, php nginx, location api, multiple files, location directory, serve file php, api location, nginx php, projects specification

Concernant l'employeur :
( 3 commentaires ) swannington, United Kingdom

N° du projet : #1605829

4 freelances ont fait une offre moyenne de 9 £ /heure pour ce travail

EugeneWHZ

Hi, I will be happy to help you with Nginx configuration, please let me know the details.

10 £ GBP / heure
(27 Commentaires)
5.2
kikoqiu

I'm in charge of several nginx server.

10 £ GBP / heure
(2 Commentaires)
3.1
Borek66

Programmer Need We looking programmer in our account creating section. yah oo, gma il, ai m, hotma il, crai glist, facebook, twitter, myspace, mybookyear etc Account creating section need following knowledg Plus

8 £ GBP / heure
(0 Commentaires)
0.0
naleksandrov

Easy task.

7 £ GBP / heure
(0 Commentaires)
0.0