Questions tagged [conf]
59 questions
0
votes
1 answer
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 like this
ServerName 4techgroups.com …
![](../../users/profiles/381630.webp)
Sanjok Gurung
- 103
- 4
0
votes
1 answer
Nginx rules conversion
I have these htaccess rules:
Options -MultiViews
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond…
![](../../users/profiles/390072.webp)
Sherif
- 33
- 2
0
votes
1 answer
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 previous URL, the rewritten URL would be…
![](../../users/profiles/384320.webp)
Dave
- 155
- 1
- 5
- 17
0
votes
1 answer
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 redirect (app.php) with app_dev.php, it runs fine…
![](../../users/profiles/361532.webp)
Konrad
- 15
- 2
0
votes
1 answer
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()…
![](../../users/profiles/329829.webp)
ctrlz
- 101
- 1
0
votes
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…
![](../../users/profiles/319693.webp)
Steve Adams
- 101
- 2
0
votes
1 answer
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 subdirectory.
#Redirect API subdomain to API…
![](../../users/profiles/310798.webp)
Avi
- 101
0
votes
1 answer
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 blocked off with basic auth. There are a few…
![](../../users/profiles/281788.webp)
JayMcTee
- 3,763
- 12
- 20
0
votes
1 answer
/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.
Up until now it has worked, but now, when I…
![](../../users/profiles/187748.webp)
Ronald Jordan
- 1
- 2
0
votes
1 answer
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;
root /var/www;
location / {
index …
![](../../users/profiles/190413.webp)
Ram
- 179
- 1
- 1
- 8
0
votes
3 answers
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
DirectoryIndex index.php
to…
![](../../users/profiles/71804.webp)
csi
- 1,535
- 7
- 22
- 42
0
votes
1 answer
Nginx: maximum number of locations as specified in nginx.conf?
Is there a maximum number of locations that nginx can handle in nginx.conf?
![](../../users/profiles/382.webp)
Toby Hede
- 309
- 5
- 11
0
votes
1 answer
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 this:
12:34:29.829750 IP avo.net.domain >…
![](../../users/profiles/95818.webp)
adrianTNT
- 1,007
- 5
- 21
- 41
0
votes
2 answers
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 the below and only get a 404.
server {
listen …
![](../../users/profiles/129037.webp)
sphvn
- 245
- 1
- 2
- 6
0
votes
1 answer
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 Integer (error code ...)
I'm trying to get my Script…
![](../../users/profiles/5045.webp)
Kortex786
- 373
- 1
- 4
- 14