Questions tagged [conf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 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 ...
0 votes
0 answers
179 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. ...
0 votes
1 answer
159 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 ...
  • 11
0 votes
0 answers
2k 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 ...
0 votes
2 answers
1k 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 ...
0 votes
1 answer
375 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 ...
  • 105
0 votes
2 answers
135 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/$...
0 votes
1 answer
224 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 ...
  • 1
0 votes
0 answers
31 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 ...
  • 1
0 votes
2 answers
382 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 ...
0 votes
2 answers
1k 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 ...
0 votes
1 answer
102 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 ...
  • 101
0 votes
1 answer
185 views

nginx conf file fault causing mixed content

Hi can someone help to check the nginx conf file? Old and new images upload to my site are causing mixed content error. So, if I change the source code it won't solve the prob. I think it's caused ...
1 vote
1 answer
2k 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
1 answer
642 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
10 votes
2 answers
11k 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 ...
  • 251
0 votes
0 answers
47 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
1 answer
26 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 ...
  • 111
0 votes
1 answer
29 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
2 answers
184 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. ...
  • 113
1 vote
1 answer
61 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 ...
  • 123
1 vote
0 answers
620 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 ...
  • 111
1 vote
0 answers
859 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
1 answer
2k 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
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 ...
2 votes
3 answers
17k 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
1 answer
357 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
  • 33
0 votes
1 answer
209 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 ^...
  • 33
0 votes
1 answer
124 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 ...
  • 165
2 votes
1 answer
867 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/...
  • 245
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 ...
0 votes
1 answer
773 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 ...
  • 15
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 ...
1 vote
0 answers
583 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 ...
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 { ...
  • 608
0 votes
1 answer
1k 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() "/...
  • 101
0 votes
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 ...
1 vote
0 answers
782 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
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 ...
0 votes
1 answer
848 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 ...
  • 101
0 votes
1 answer
302 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 ...
  • 3,803
1 vote
2 answers
742 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
1 answer
1k 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.) ...
  • 285
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/...
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. ...
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 '^#' * ...
  • 10.5k
0 votes
1 answer
284 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; ...
  • 179
0 votes
3 answers
11k 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 ...
  • 1,535
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 ...
  • 111
1 vote
2 answers
2k 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 ...