All Questions
49
questions
0
votes
0
answers
141
views
NGINX config for multiple Symfony installations using subfolders
I have a shopware installation (version 6.5.5.1) running on my domain. I want to add more independent Shopware installations, using the same domain (for different languages/countries).
For example, ...
1
vote
2
answers
658
views
Nginx Server with multiple applications on sub-directories
My team has a server we use for internal tools and tests. It has a subdomain pointing to it: myserver.mycompany.com. What we're trying to achieve is to have multiple applications, each with under a ...
1
vote
0
answers
3k
views
NGINX file server with symlinks
This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each ...
0
votes
0
answers
159
views
Nginx - Reverse proxy serving ScreenConnect does not prepend subdirectory
I am running an unsecured ScreenConnect web interface on a machine on my local network. I would like to serve it through port 443 using nginx's reverse proxy, and access it via:
https://<WAN.IP....
1
vote
1
answer
647
views
NGINX getting an application in a subfolder to work with redirects
I've installed Mautic in a subfolder like: example.com/m
Most of Mautic is working fine with my configuration (admin panel, using Mautic etc.) but for some redirects in my subfolder, I get a 404:
...
0
votes
1
answer
2k
views
nginx - subfolders alias include all subfolder
I'm currently trying to fiddle around with a location block that has a different root.
However I have some issues when accessing files that are in a subfolder on the different root.
Here is my broken ...
0
votes
2
answers
1k
views
Nginx and PHP-FPM with subdirectory variable - sends file instead of parsing
Wit the following setup I don't know how to make nginx pass the CGI request to the index script in the appropriate version subdirectory. It instead serves the index as a download.
PHP-FPM is a linked ...
1
vote
1
answer
180
views
Nginx subdomain + subfolder to subfolder
The goal is to load pages from blog.example.com/blog using example.com/blog and all the posts, categories and authors.
location /blog(/.*)$ {
rewrite ^ $1 break;
proxy_set_header Host $host;
...
0
votes
1
answer
2k
views
nginx redirects subdirectory requests without trailing slash to a URL with specified port
I have the following problem.
In my local test configuration, when I try to access https://www.testdomain.local/admin it will always redirect me to https://www.testdomain.local:8443/admin/ which ...
1
vote
1
answer
2k
views
Nginx : How to do dynamic path routing requests to single root directory with different country (geoip module)
How to do dynamic path routing requests to single root directory and url to /<country_zone>/<actual_url>/* .
I am able to retrive $country_zone value which can be any of (in|uk|us|...
-1
votes
3
answers
2k
views
Change WordPress root directory in nginx
I have a website that address is site.com and also a WordPress that is site.com/blog. I would change the WordPress root directory in the nginx.
here is my config:
server {
listen 80 ...
0
votes
1
answer
2k
views
NGINX Not showing directory contents
I have some trouble with NGINX on my server. I previously used Apache.
When I try to request folder contents on my server (like, 192.168.0.128/files), I get a 403 Forbidden error. Anyone know how to ...
0
votes
2
answers
1k
views
Error configure nginx multiple subfolders with multi wordpress site
I have problem with configure nginx for mutilple subfolder, I had apply many solutions on serverfault, but it didn't work with my site. My sites are using two wordpress. Main site https://optshare.com,...
1
vote
1
answer
877
views
Nginx doesn't pick the right php-stack in location
UPDATE 28.02.2019
The problem is the following part inside my server block:
# Don't use `$uri` here, see https://github.com/yandex/gixy/issues/77
rewrite /wp-admin$ $scheme://$host$...
1
vote
1
answer
2k
views
nginx + fpm + subdirectory
I have an nginx config that looks like this:
location ^~ /movies {
alias /var/dp.cx/movies/current/public;
fastcgi_index index.php;
try_files $uri /movies/index.php;
location ~* \....
1
vote
1
answer
693
views
nginx try_files not finding files in large directory (86k files)
To start out, the nginx config:
server {
listen 443 ssl;
server_name example.com;
ssl_certificate /example/fullchain.pem;
ssl_certificate_key /example/privkey.pem;
...
-1
votes
2
answers
1k
views
How to configure Nginx to load wordpress site in subfolder? (for api calls)
My project directory structure is as follows:
/var/www/mysite/
backend/
frontend/
where frontend/ contains simple html and js files, and backend/ is a wordpress site. I expose wordpress data ...
3
votes
2
answers
7k
views
nginx sub directory wildcard rewrite
I have set up a server block on my nginx server, e.g. with domain testsite.com. I want to be able to install separate WordPress installations into direct child folders of the root folders, e.g. /var/...
0
votes
1
answer
450
views
Can I hide time and date and size in Nginx webserver directory listings?
By default Nginx webserver shows the date , time and the size of all uploaded files when you browse each directory . It's something like " 21-Apr-2016 07:38 719858135 " . Is there a way to ...
5
votes
1
answer
9k
views
Nginx point subdirectory to root
How can I point www.domain.com/ru/ to open the content of www.domain.com/ ?
Not a redirect.
I have tried alias and root but can't figure how to make it work.
Thank you.
0
votes
2
answers
3k
views
Serving images from two different directories with Nginx
This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping.
I have a website that I want to be able to serve images from, from different directories. I ...
0
votes
0
answers
52
views
Nginx with software installed in subdirectories
I'd like to create a directory/website structure like this:
/
/index.php
/tac
/tac/1app1/index.php
/tac/1app2/
/tac/1app3/
So there is one CMS in the root.
In subdirectories there should be other ...
1
vote
1
answer
131
views
Serving additional directory content under root in Nginx
Using Nginx with Django, I have the following location entry in my server config:
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:1234;
}
Thus, all root URL requests are passed to ...
0
votes
1
answer
43
views
Issue with Nginx configuration : location and directory
I have the following simple server block :
server {
listen 80;
server_name _;
location / {
*****root test/a/;*****
index index.htm;
...
1
vote
0
answers
777
views
No input file specified nginx subfolder
I've searched many results in this site has same title as my question, but I can't find a suit for me, this is my problem :
I installed nginx on ubuntu
Everything is ok now, but when I tried to ...
0
votes
1
answer
2k
views
Nginx configuration doesn't work with wordpress in subdirectory
I have a nginx installation which I need for hosting web sites in development so that other people can test them out.
Right now I've set up a virtual host for a single sub-domain and in that ...
-1
votes
1
answer
540
views
nginx special directory whitelist extension
How can i set white list extension for special directory for my virtual host.
I have bower installation of my webapp and i install many bower component into bower_components directiry of root of ...
1
vote
1
answer
3k
views
Nginx Password Protect Entire Port Number 8081
I'm trying to password protect an entire port on my website--https://domain.com:8081 and http://domain.com:8081
I have tried editing /etc/nginx/sites-enabled/domain.com.vhost by adding the following ...
0
votes
0
answers
732
views
How to optimize Nginx config to serve Laravel from subdirectory
I have multiple applications setup on one domain, each in its own folder like this:
example.com/app1
example.com/app2
...
example.com/appX
My directory tree is like this:
/usr/share/www/
...
0
votes
2
answers
1k
views
Reverse proxy domain subdirectory to another host serving the same domain name
I have a Debian 6.0 webserver correctly running with the following setup:
Nginx as front-server listening on the WAN facing interface port 80
Serving the domain HTTP mydomainame dot org (via ...
0
votes
1
answer
2k
views
nginx points the sub-directory of an alias folder to the base directory
I am new to Nginx. Now I have a confusion on nginx configurations:
My web site contains folders in different locations:
location / {
root /Path1;
}
location ^~ /download {
alias /Path2;
}
When ...
0
votes
1
answer
109
views
Nginx and multiple applications
I am new to nginx, and here what I am trying to achieve :
I have only one domain name.
I want to have several applications, accessible with something like :
mydomain.com/app1
mydomain.com/app2
etc
...
0
votes
1
answer
8k
views
Nginx: Rewrite/Redirect URLs in a subdirectory to root
I want to rewrite or redirect any URLs inside a subdirectory to root, like so:
www.site.com/subdirectory/item => www.site.com/item
I tried this, but doesn't seem to work properly:
location /...
1
vote
0
answers
161
views
Redirect subfolder to subfolder and remove subfolder via nginx
I'm trying to redirect a subfolder to another subfolder with nginx. The hard part is removing the target subfolder from displaying, as it's a ruby app and not a true root folder. They are both on the ...
0
votes
1
answer
410
views
serving webapps out of arbitrary subfolders with nginx
I'm serving webapps out of arbitrary subfolders on a domain. i.e.
example.com/app-one (with example.com/app-one/page served by app-one)
example.com/folder/app-two (with example.com/folder/app-two/...
0
votes
1
answer
1k
views
Rewrite certain URL in Nginx such that another app will serve it
I have a config file for mydomain.com which is served with Drupal. Problem is this rewrite rule takes the control over any request:
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 ...
3
votes
1
answer
2k
views
Strategy to isolate multiple nginx ssl apps with single domain via suburi's?
Warning: so far I have only learnt how to use nginx to serve apps with their own domain and server block. But I think its time to dive a little deeper.
To mitigate the need for multiple SSL ...
0
votes
2
answers
999
views
How to rewrite all routes not going to a specific subdirectory to a different subdirectory in nginx?
My site content (which is currently kept in /public_html loosely) is under a Mercurial repository, so I would like it to have its own directory. Since my wiki is under /public_html/wiki, I am trying ...
1
vote
2
answers
4k
views
Combine several locations with regex in nginx
I dynamic number of Joomla installations in subfolders of the domain.
For example:
http://site/joomla_1/
http://site/joomla_2/
http://site/joomla_3/
...
Currently I have the ...
12
votes
2
answers
27k
views
Reverse proxy for a subdirectory in nginx
I want to set up a Reverse proxy on my VPS for my Heroku app (http://lovemaple.heroku.com)
So if I visit mysite.com/blog I can get the content in http://lovemaple.heroku.com
I followed the ...
7
votes
1
answer
15k
views
nginx autoindex receiving 403 Forbidden
I'm having trouble with nginx and autoindex.
Even though I've put it in the site-host, it's still throwing "403 -Forbidden at me"
location /pics {
autoindex on;
...
0
votes
2
answers
211
views
nginx rewrite to alphabetized subdirectory
I'm trying to convert the following Apache mod_rewrite rule into an appropriate nginx format:
RewriteCond %{REQUEST_FILENAME} (.*)/([^\/])([^\/]+)/?$
RewriteCond %1/%2/%2%3 -d
RewriteRule ^/?.* /%2/%...
0
votes
1
answer
1k
views
nginx try_files confusion
The setup I'm going for is as follows: I want nginx to look for a file in the /test subdirectory, and if it's not there, serve it from it's normal uri. I figured this would be fairly straightforward ...
5
votes
3
answers
6k
views
nginx: redirect subfolder to subdomain
I'm trying to redirect a subfolder to a subdomain in nginx. I want http://example.com/~meow/ to be redirected to http://meow.example.com/. I tried the following:
location ~ ^/\~meow/(.*)$ {
...
3
votes
2
answers
2k
views
WordPress on a subdirectory with Nginx: access to dashboard?
I want to setup a WordPress blog, but not with a typical configuration:
The main site is at www.example.com.
As of now, it just has a static
index.html file with an image, we
will use probably an ...
0
votes
1
answer
959
views
Nginx html folder
The files in the folder "/usr/share/nginx/html" belongs to the user "nginx" (or root ?), the primary user "2x2p1p" can't modify these files, then the best thing to do is:
1 - Change the user and the ...
0
votes
1
answer
340
views
Shared folder between two Web Servers
I'm running two webservers in a single host. One of them is a Tomcat running in a reverse proxy configuration. The front webserver is a nginx that proxies request to the Tomcat.
So far, is working ok....
3
votes
2
answers
2k
views
nginx howto correct the path from a back-end server redirect response under a virtual directory
The following was my deployed servers:
client ------ nginx proxy(example.com) ------ back-end server(192.168.1.20)
The nginx proxy's external URL was configured under a virtual directory http://...
5
votes
1
answer
12k
views
Nginx: Rewrite rule for subfolder
I have a subdomain where I want to keep projects I am working on, in order to show these projects to clients.
Here is the configuraion file from /etc/nginx/sites-available/projects:
server {
...