Questions tagged [conf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
70 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 ...
0
votes
0answers
40 views

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 ...
1
vote
1answer
253 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 ...
0
votes
0answers
25 views

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 ...
0
votes
1answer
21 views

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 ...
0
votes
1answer
25 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....
0
votes
2answers
143 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. ...
1
vote
1answer
46 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 ...
1
vote
0answers
268 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 ...
1
vote
0answers
581 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 ...
0
votes
1answer
1k views

Setting cache/expire time to every element in nginx?

when configuring web servers (nginx) is it uncommon to set and expire time and cache every element in every directory that gets requested by the client browser? some examples of expire time i just ...
0
votes
1answer
1k 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 ...
2
votes
3answers
8k 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 ...
-2
votes
1answer
280 views

Nginx force https only for index page

What's the best way to set up nginx conf to force https on the index.php page only and every other page be forced to http. thanks
0
votes
1answer
157 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 ^...
0
votes
1answer
70 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 ...
1
vote
1answer
497 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/...
1
vote
1answer
645 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 ...
0
votes
1answer
348 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 ...
3
votes
1answer
11k 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 ...
1
vote
0answers
384 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 ...
1
vote
0answers
2k 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 { ...
0
votes
1answer
899 views

centos 7 : nginx givers error when enabling log

In CentOS 7, if I put the following line in my nginx.conf: error_log /usr/share/nginx/wordpress.itzgeek.com/logs/error.log; I get the following error when restarting nginx: nginx: [emerg] open() "/...
0
votes
1answer
1k 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 ...
1
vote
0answers
601 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. ...
2
votes
1answer
1k 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 ...
0
votes
1answer
570 views

Nginx rewrite subdomain to subdirectory without changing the URL

I've been using Appserv for a while and moved to Nginx for now. When I was running my website under Appache I had this configuration in the .htaccess file in order to link the subdomain to the ...
0
votes
1answer
230 views

NginX Nested Location Issue: Spitting out raw PHP

I've tried hard to understand NginX's logic in location order processing but it still is beyond me, and I suspect that's why I am getting the following issue. I run a SugarCRM instance, which I have ...
1
vote
2answers
588 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 ...
2
votes
1answer
532 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.) ...
1
vote
1answer
2k 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/...
0
votes
1answer
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. ...
3
votes
1answer
1k 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 '^#' * ...
0
votes
1answer
278 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; ...
0
votes
3answers
3k 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 ...
0
votes
1answer
2k 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 ...
1
vote
2answers
254 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 ...
0
votes
1answer
620 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?
0
votes
1answer
2k 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 ...
0
votes
1answer
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 ...
0
votes
2answers
102 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 ...
1
vote
2answers
529 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 ...
2
votes
3answers
3k 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/...
1
vote
1answer
1k views

SNMP Custom Script Execution in Win 2008R2

I'm trying to execute a custom Script that is readable from SNMP service. Let's try to explain my purpose. I have a Win2008R2 server I have a PowerShell Script that "echo" something and return an ...
1
vote
1answer
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 ...
7
votes
3answers
7k 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 ...