Questions tagged [conf]
60 questions
1
vote
1 answer
NGINX index.php rewrite rules wont work
Recently I changed my webserver from cpanel and CENTOS 7, to use nginx with an scipt called nDeploy, wich works well with wordpress and the sites hosted on my server.
I have this script wich is not working. Because of nginx configuration, my site is…

NaturalDevCR
- 113
- 4
1
vote
0 answers
nginx SSL client certificate handshake very slow for domain and paths
I have a server with some subdomains publicly accessible while on one subdomain a client side certificate is required. Not only that, paths on that subdomain point to different applications. I.e that sub domain protects a load of different web apps…

amlwwalker
- 111
- 2
1
vote
1 answer
If there a way to set Global Expires Headers for all domains on an Nginx install?
New to nginx. I searched for this but was unable to find what I was looking for, maybe I'm thinking of it wrong.
Is there a way to add the following rules to an nginx conf somewhere which will apply to any new domains added to the install w/o…

Steve Adams
- 111
- 3
1
vote
0 answers
Fail2Ban regex in sshd.conf not catching failed root logins in /var/log/auth.log
I used Fail2Ban on my Ubuntu server (14.04 LTS), and it mostly works well.
I recently noticed the default regex in /etc/fail2ban/filter.d/sshd.conf does not match some failed sshd login attempts.
Here is a typical line from /var/log/auth.log
Sep 28…

David Jones
- 165
- 2
- 8
1
vote
2 answers
Nginx configuration files structure
Where do I put specific domain configuration files on an nginx server? I've seen a lot of conflicting information. Does it belong in the sites-enabled folder? If so, do I put it in the already created (via symlink) www.mysite.com file? Or do I…

HectorOfTroy407
- 135
- 1
- 5
1
vote
1 answer
exim4 multi domain relay - update-exim4.conf.conf
I am trying to configure a Debian vServer to relay mails for multiple domains pointed to the vServer. The vServer has a fixed ip. The webserver for all domains is working fine.
With one domain the relaying is working as expected but I can not add…

Gonzo
- 111
- 1
- 3
1
vote
2 answers
Testing vhost config
I've been battling to get a vhost config working on an internal development server at work. I have found other vhost configs in the site-available directory. For some reason, I can't see why my new vhost is not responding to any requests. All i get…

user2108258
- 303
- 1
- 4
- 10
1
vote
1 answer
Disallow everything in directory except subdirectories with certain name using .htaccess or vhost.conf
How can I disallow everything in a directory except any subdirectories that have a certain name using htaccess or even vhost.conf for the site? I have a protected main directory which contains subdirectories. Each of the subdirectories have another…

Jizbo Jonez
- 117
- 1
- 10
1
vote
2 answers
Nginx Secure Download (IP address)
I'm configuring nginx to work with secure_download and has made it to work without any problems.
However I want to modify it and make the download link for a specific IP only.
I can achieve this using the $remote_addr variable. However there are…

AnsellC
- 159
- 5
1
vote
1 answer
Conditionally serve 404 file based on request url file extension in Nginx?
I would like to know if I can conditionally serve a specific file as a 404 page based on the request url, or the content-type/mime-type requested.
I'm guess something along the lines of:
if url_extention == (gif|jpg|png):
/404.gif
else:
…

Louis
- 155
- 1
- 6
0
votes
1 answer
keepalive_disable parameters nginx for particular useragent/browsers
I am using keepalive_disable in nginx conf
this requires for
Syntax: keepalive_disable none | browser ...;
Default: keepalive_disable msie6;
Context: http, server, location
Now i have two problems
other than safari, msie6 i was not able to…

Shoaib
- 1
0
votes
0 answers
Insert into each server directive files dinamicaly NGINX
my current settings are:
My nginx http settings are like ..
http{
# ...
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/.conf*;
}
and each server conf files I have this include:
server{
# top settings..
…

Kresimir Pendic
- 105
- 6
0
votes
1 answer
RewriteEngine giving problems in Apache 2
I am using apache2 in Ubuntu 14 and have set up multiple conf files for multiple domains. However, when I am trying to add a new domain with a similar conf file it's not working. The conf file for the new domain looks like:
…

Ram Patra
- 111
- 4
0
votes
1 answer
Unable to write apache2 config for sub path of my domain
My app root:
/public/index.php
/public/front/index.html
I want to mydomain.com/api to serve from /public/index.php, and
my frontend i.e the static site mydomain.com/ from /public/front/index.html.
I have tried using proxy and location with…

Milind Singh
- 153
- 7
0
votes
2 answers
apache https port 80 redirects to wrong https site
When I listen to port 80 in /etc/apache2/sites-available/majichook.com.conf and do a permanent redirect to https://majichook.com for some reason it is forwarding to my https://99centbeats.com instead. Everything looks right in the file. I am very…

Jeff
- 113
- 5