Questions tagged [conf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11 votes
4 answers
22k views

What does the apache Satisfy directive do?

I stumbled upon a httpd.conf directive that I can't manage to understand: <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> According to the doc , I would say ...
user41565's user avatar
  • 213
10 votes
3 answers
17k views

What is the difference between default-ssl.conf and what is 000-default-le-ssl.conf?

default-ssl.conf is quite self-explanatory. I assume it's for default values that would be used when no vhost or other config overrides it. But what exactly is 000-default-le-ssl.conf file? Why is it ...
DominicM's user avatar
  • 251
4 votes
1 answer
16k views

nginx PHP files downloading instead of executing

I'm trying to achieve following thing. I've main website under domain root directory. It's working fine. i.e PHP files are executed. After some time I've added "auth" directory with basic HTTP ...
Andrey Andreevsky's user avatar
3 votes
1 answer
2k views

Unable to allow users access to SVN repo, what could be the cause?

I've installed a SVN server and configured a repository inside it. It is accessible by Apache. I've allowed access to 3 users, here are the repository conf files: [root@afdev conf]# egrep -v '^#' * ...
Itai Ganot's user avatar
  • 10.8k
2 votes
3 answers
5k views

Organizing .conf apache configuration per domain

I have a VPS server with CentOS with multiple domains (some I own, some I don't). I host my sites and my friends sites on it. I have this structure: /home/myfriendsusername/public_html/ /home/...
rcs20's user avatar
  • 73
2 votes
1 answer
3k views

why this .conf file is giving "Server directive is not allowed here" error?

I've read some other answers to the almost exactly same question, but they don't seem to be addressing my query (some of them due to diff environ etc). I'm setting up a new ubuntu server on DO. On it ...
Bathinda Helper's user avatar
2 votes
3 answers
20k views

HTTPS proxy in apache for rest API

Sounds like a basic question, but I don't know about apache config. Any help would be great. Since Open TSDB wont support https to send data(via REST API), we want to create a https proxy in apache ...
Veerendra K's user avatar
2 votes
1 answer
3k views

Nginx Config on DreamHost VPS

I got my site up and running on nginx on my Dreamhost VPS. Cool. I wanted to limit the number of connections per IP by adding the following to the http block of the site-wide nginx conf file (/dh/...
kingkool68's user avatar
2 votes
1 answer
1k views

Apache HTTPD: URL resolution for a virtual host with proxies and directory alias

Here's what my environment looks like: REST api (django), running over WSGI (mod_wsgi) on port http://server:8107/api static files for the API site (i have some admin pages), in a directory, say /opt/...
Olivier H's user avatar
  • 245
2 votes
1 answer
2k views

Conditionally serving high resolution and WebP images with nginx

Not sure if I'm trying to pull off the impossible, but I'm wanting to configure Nginx to serve ".webp" files to browsers that support the file format and serve fallback files (i.e. pngs, jpgs, etc.) ...
kaffolder's user avatar
  • 285
2 votes
1 answer
3k views

All of sudden, Nginx says "[emerg] "server" directive is not allowed" on first line of conf file

I'm pretty new to server administration and I'm having a huge headache trying to fix a nginx conf file that just won't work in a Debian remote machine. Whenever I try to debug the file doing nginx -c ...
rodrigoburg's user avatar
2 votes
0 answers
3k views

Nginx try_files and named location not working as expected

Previously (about 5months ago) everything was working well, right now, instead of @app index.html is served. Same problem on nginx version: 1.6.2 and 1.8 This is my /etc/nginx.conf http { ...
Abc Xyz's user avatar
  • 618
1 vote
2 answers
3k views

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 ...
user2108258's user avatar
1 vote
2 answers
877 views

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 ...
HectorOfTroy407's user avatar
1 vote
2 answers
634 views

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 ...
AnsellC's user avatar
  • 159
1 vote
1 answer
2k views

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 ...
Steve Adams's user avatar
1 vote
1 answer
4k views

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 ...
Jizbo Jonez's user avatar
1 vote
1 answer
2k views

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 ...
Louis's user avatar
  • 155
1 vote
1 answer
73 views

PHP Dynamically generating redirects

I've recently moved all my of my rules from a .htacess file into a .conf file. Now when I want to add a redirect rule to my website I have to edit the .conf file and sudo apachectl graceful. I've ...
Chud37's user avatar
  • 123
1 vote
0 answers
738 views

Nginx try_files not working, redirected to 302

I need to access below url. http://localhost/admin/logout.php/?access_token=21fd3cfe5bab26131ff5244c08e5f520&continue=/ In my NGINX server, it is redirecting me to default page. Please find ...
PKumar's user avatar
  • 111
1 vote
0 answers
982 views

Asterisk Confbridge conference. How to avoid eavesdroppers?

Trivia: I'm trying to implement a conference call management functionality on my Elastix server. The original problem was in the Elastix's unability to invite all participants in the conference via ...
Roustikov's user avatar
1 vote
1 answer
1k views

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 ...
NaturalDevCR's user avatar
1 vote
0 answers
693 views

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 ...
amlwwalker's user avatar
1 vote
0 answers
857 views

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. ...
David Jones's user avatar
1 vote
1 answer
3k views

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 ...
Gonzo's user avatar
  • 111
0 votes
2 answers
377 views

Get the first letter of subdomain as variable

How do I get the first letter of a variable in nginx example server_name ~^(?<subdomain>\w+)\.development\.test$; location / { root /var/www/test/$subdomain.0/$...
MC-ifac's user avatar
0 votes
1 answer
168 views

How do I set up my nginx file to rewrite my URL?

I’m using nginx (1.4.6-1ubuntu3.4) on Ubuntu 14.04. When someone visits a page, e.g. http://mymaindomain.com/page1, I want to rewrite it to include the www subdomain. So if someone visited the ...
Dave's user avatar
  • 224
0 votes
1 answer
2k views

Nginx: maximum number of locations as specified in nginx.conf? [closed]

Is there a maximum number of locations that nginx can handle in nginx.conf?
Toby Hede's user avatar
  • 309
0 votes
2 answers
113 views

nginx don't host on root host on root/somename

How do I get nginx to ignore requests on http://127.0.0.1/ but hand out from my html directory on http://127.0.0.1/somename this will also need to be the same for the proxy for /data/ I have tried ...
sphvn's user avatar
  • 245
0 votes
2 answers
2k views

Why nginx "return 301" and ”try_files“ fall into an infinite loop

my conf code: index index.html index.php; location / { if ($uri = '/a/') { return 301 https://example.com/a; } try_files $uri $uri/ =404; } If url is /a/, 301 to /a, then ...
nanxiaobei's user avatar
0 votes
2 answers
383 views

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. ...
Jeff's user avatar
  • 113
0 votes
1 answer
214 views

Nginx rules conversion

I have these htaccess rules: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^...
Sherif's user avatar
  • 33
0 votes
1 answer
1k views

ntpd does not sync clock if it gets internet connection little late

In our production box, I am a facing a problem with ntpd. I am enabling the NTP feature for our production box and observing one isssue. We start the ntpd daemon in the initialization process of our ...
vivek's user avatar
  • 105
0 votes
2 answers
2k views

Can I use both pool and server configurations in ntp?

For a ntp demon, what happens if I have this configuation in ntp.conf: pool 0.pool.ntp.org burst iburst minpoll 4 server europe.pool.ntp.org ? How will ntp be configured? I don't know there to be ...
user1828163's user avatar
0 votes
1 answer
54 views

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....
Milind Singh's user avatar
0 votes
1 answer
2k views

Server alias not working on apache, ubuntu 14.04 server, Amazon AWS

I have a remote ubuntu server on Amazon AWS, and I am enabling a site using a2ensite. I have a conf file in my /etc/apache2/sites-available/001-mysite.conf My servername and server alias is laid out ...
ShanjayG's user avatar
  • 103
0 votes
1 answer
915 views

Redirect loop - apache

I'm trying to wrap my head around why my apache configs give me an infinite redirect loop. I've tried everything but the loop is still there. What's interesting is that when you replace the very last ...
Konrad's user avatar
  • 15
0 votes
1 answer
1k views

/etc/init.d/exim queue runner

I'm having trouble getting my exim daemon to run according to the init.d script settings. The main problem is with the QUEUE variable. I've set it 5m to have it spawn another queue runner as needed. ...
Ronald Jordan's user avatar
0 votes
1 answer
296 views

Nginx complete folder protection not working

I have installed nginx(1.4.3) with PHP-FPM(5.4.20). i want to protect my wordpress wp-admin folder. my nginx configuration file domain.conf: server { listen 80; server_name example.com; ...
Ram's user avatar
  • 179
0 votes
3 answers
14k views

DirectoryIndex works in htaccess but not in apache2 .conf files

I need my Ubuntu install to use index.php as the default file. Added DirectoryIndex index.php to /etc/apache2/apache2.conf Added <Directory /path/to/website/root/> DirectoryIndex ...
csi's user avatar
  • 1,585
0 votes
1 answer
2k views

Too much traffic on UDP suspecting bind miss-configuration

A server generates over 600GB of monthly traffic on UDP port (while http is under 1GB), so I ran tcpdump command and I see many (over 10/second or so) fast dns related commands/traffic that looks like ...
adrianTNT's user avatar
  • 1,149
0 votes
0 answers
105 views

Apache2 - serves a subdirectory as root but now other sites in subdirectories are broken

So I have a new tool installed on my webserver and it has a somewhat complicated folder structure, in order to get it to run, I put everything in a subdirectory and serve that as root of my domain. ...
tulekparson's user avatar
0 votes
0 answers
227 views

URL rewriting in nginx for multiple projects php & react

I am facing a 404 error when I access my site directly from IP. The default root directory is /var/www/html. And I am accessing it through http://<server_public_ip>/folder_name. This is my ...
Sanjay Goswami's user avatar
0 votes
0 answers
294 views

How do i redirect proxy nginx?

I am running 2 geoserver and nginx container. I want to call https://xxx.xxx.com/geoserver the other one https://xxx.xxx.com/geoserver2. The geoserver containers are running behind proxy container. ...
nginxfault's user avatar
0 votes
1 answer
443 views

Apache2 VHost for subdomain

I configured several months ago my nextcloud on my Ubuntu 20.04.3 LTS VM running on my FreeNAS, following their tutorial so bear with me, I'm in no means a trained apache2 guru ;-) My current VHost ...
quintz's user avatar
  • 11
0 votes
0 answers
4k views

react.js app with nginx gives 404 or refresh

I have a backend node.js application(system directory) and a frontend react application(admin directory). I use nginx as the webserver. I can load my frontend well. But when I refresh, it gives 404. I ...
user1641443's user avatar
0 votes
1 answer
509 views

nginx multiple dynamic paths issue

We're hosting 2 Angular applications on one Linux server running nginx. We'd like to have use same hostname within 2 Angular apps. Let's say when I browse to http://example.com, it'll use one of these ...
bigfan's user avatar
  • 1
0 votes
0 answers
36 views

How to modernize apache conf virtualhost files

So I have some old Apache confs for virtualhosts that I have not updated for awhile, and I would like to review them and modernize them if needed. But I'm not quite sure where to begin or what is the ...
Jayn's user avatar
  • 1
0 votes
2 answers
1k views

IP address shows default Nginx welcome page,but URL shows the WP site that is installed

I have installed WordPress on a LEMP stack in Ubuntu in Digital Ocean. When I use the Droplet IP address to access it, it shows the default nginx welcome page; but when I use its URL, it shows the ...
Praveen's user avatar
0 votes
1 answer
310 views

How to edit .conf files from a script

On a new VPS I might want to ensure that certain config values are set, or amended if they already exist. For example in /etc/systemd/journald.conf I want to set SystemMaxUse=100M if it's not already ...
bjw's user avatar
  • 101