Đã Đóng

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.

Kỹ năng: Nginx, PHP

Xem thêm: 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

Về Bên Thuê:
( 3 nhận xét ) swannington, United Kingdom

Mã Dự Án: #1605829

4 freelancer đang chào giá trung bình £9/giờ cho công việc này

EugeneWHZ

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

£10 GBP / giờ
(27 Đánh Giá)
5.2
kikoqiu

I'm in charge of several nginx server.

£10 GBP / giờ
(2 Đánh Giá)
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 Thêm

£8 GBP / giờ
(0 Đánh Giá)
0.0
naleksandrov

Easy task.

£7 GBP / giờ
(0 Đánh Giá)
0.0