Questions tagged as ['configuration']
I have two BIND servers running BIND 9:
BIND 9.11.36-RedHat-9.11.36-3.el8 (Extended Support Version) <id:68dbd5b>
running on Linux x86_64 4.18.0-372.9.1.el8.x86_64 #1 SMP Tue May 10 08:57:35 EDT 2022
built by make with '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' ...
I have couple domains on my server. There is wordpress multisite and vanilla php site. All WP sites are working correctly but if vanilla php site redirects to main WP site. Here is config of main WP site:
map $http_host $blogid {
1survey.cc 0;
b-shield.icu 1;
airlinetravel.life 2;
}
server {
server_name 1survey.cc *.1survey.cc;
return 301 https://$host$request_uri;
listen 443 ssl ...
I am building a Wireguard VPN network, in which I want to add and remove peers on the server without restarting the service or losing connections with existing peers. Tried searching for the results, but I found nothing that can suit my needs (all the solutions will cause a few second freeze or will require clients to redo handshake with server). Is it possible to implement this with Wireguard and if ye ...

I have 2 virtual hosts serving 2 different sites in my Ubuntu Server 20.04 both in port 80 and 443.
I want to use the same server to serve some static files for download on a custom port, let's say 8080.
I added a share_backup_folder.conf
configuration file on my /etc/apache2/sites-available
with the following content:
<VirtualHost *:8080>
ServerName vpsxxxxx.ovh.net
DocumentR ...

I'm having trouble figuring out the basic syntax for proxying most traffic to a local Solr install but leaving one path/dir requests being sent to a static html directory. Do all secondary, tertiary, etc... locations need to be set by regex? Haven't been able to find a simple guide on this.
current errors: /adv/index.html - 404 - Not found /adv/ - 403 Forbidden /solr/ - works fine
Here is my config: ...
My Problem is:
I have a server with an internal domain name service.internal.example.com
which redirects all clients asking for another domain to its FQDN https://service.internal.example.com
. This server is not under my control and must continue to be reachable as service.internal.example.com
.
My job is to setup a proxy that makes this service reachable from the completely separated external.example.com ...
I'm studying apache 2.4 and I've found this configuration as example. What I don't understand is the definition of ProxyPass, they have defined "balancer://cluster/example1/api" but in the Proxy directive there is only "balancer://cluster".
What they have done in this configuration? Can anyone explain me with some pratice example?
<VirtualHost *:10000>
ProxyRequests Off
ProxyTimeout 300 ...
Reading at http://www.postfix.org/postconf.5.html#smtpd_relay_restrictions, we see that, by default, network mail relay access to postfix is restricted to "local" or "authenticated" users:
smtpd_relay_restrictions (default: permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination)
Access restrictions for mail relay control that the Postfix SMTP server applies in the context of the RCPT ...

I tried to change nginx' port 80 to 81 in nginx.conf file but my sample site is not responding despite listening to port 81. The sample website only responds on port 80. Also , sample site on http://localhost:81 is responding. But http://samplesite.com/ is not responding when Nginx is running on 81 Port.I am newbie so I'm having a hard time figuring out the best way to do this. Can somebody tell me how I ...

I'd like to return by Postfix 550 5.1.1 for some specific domains. I followed the manual and created the access file, with a single row: baddomain.com 550 5.1.1
The 550 is returned, but instead of 5.1.1, 5.1.7 is returned. I don't understand, why. I would like to return 5.1.1, to emulate that the recipient address does not exist on the server.
Thank you!
I'm trying to get an isc-dhcp-server configuration to use different DNS-Servers based on the ip-address assigned.
Basically, I want some of my client marked as not-trusted, which then may not access services using the internal url.
I tried using range based pools, which do not seem to be able to handle the domain-name-servers option. I also tried using multiple subnets with the same ip/netmask configurati ...
I want to implement something like the following in our Apache httpd configuration:
<If "%{HTTP_USER_AGENT} !~ /something/">
RemoveEncoding .gz .tgz
AddType application/x-gzip .gz
</If>
but my understanding is that this conditional <If>
syntax only works with Apache 2.4.x. Unfortunately, I'm stuck with Apache 2.2.x for the time being. Is there a way to do t ...

i want to disregard the traffic of the openvpn config file. I want to when i connect to the tunnel , I stay in the default gateway without entering the tunnel
I am trying to set some controls in Apache via the .htaccess. This works:
<LimitExcept GET>
Order allow,deny
Allow from all
Deny from all
</LimitExcept>
while this does not:
<LimitExcept POST>
Order allow,deny
Allow from all
Deny from all
</LimitExcept>
Please help me understand what is going on here.
Example test case:
I created a simple HTML form (f ...
I have followed the instructions to configure Mosquitto on CentOS 7, provided by digital ocean. I believe I have most of the stuff set up correctly, I was able to follow all the instructions with some deep diving to find solutions for some deprecated instructions. But, I am able to subscribe and publish messages to a topic when I'm logged on to my server.
However, I want to access my own MQTT brok ...
I am working on a project at https://modernamedia.no/ and I am trying to do a multiple of things
- redirect all calls to www.modernamedia.no to https://modernamedia.no/
- proxypass localhost:5000 to api.modernamedia.no
- redirect all http calls to https.
the last one is working. however, the first two are not working. You can test it yourself by going to https://www.modernamedia.no/
I am also struggling rea ...

So.
I've configured dell 5212F switches with 2x100G ports into VLTi domain. For some reason - when I run show vlt 10 mismatch it show that both of switches have no roles. But they appear as should in show vlt 10 and they able to ping each other mgmt IP
In addition - i've created a port-channel 1 with vlt-channel 1 and connected 2 25G uplinks to one of vmware servers.
I've created a distributed switch w ...

I have config
location ~ \.(pdf)$ {
expires 2h;
}
location / {
...backend rules...
}
Now I want the first block to be executed only for really existing pdfs, otherwise the request would be passed to the backend.
I suppose I should add in the first location block try_files $uri @backend
:
location ~ \.(pdf)$ {
try_files $uri @backend;
expires 2h;
}
location / {
...backend rules...
}
...
The http-port has to be available for another usage.
Port 80 of the stats-page has to be closed or moved to another port.
Removing mode http
in the default
section disables the page.
echo >/dev/tcp/hostname/80
returns '0' -> port 80 is already reachable.
I run a webservice that performs some basic image processing operations.
The webserver first accepts image uploads from users and temporarily stores them. A backend server then downloads the image through a HTTP get request and performs the actual processing. It is then sent back to the webserver. The user then downloads the images. The processed image is typically significantly larger than the o ...
It's a pretty simple question, yet I can't find a working answer.
My project is Wordpress (http://example.com/). Under a certain path (http://example.com/see-our-page) it should be redirected to another root directory (vue app) via staying under the same url.
As for now - I get just 404 from wordpress itself, as if the redirect wasn't visible, instead it uses standard routing, trying to find a post with t ...
According to the NGINX documentation
proxy_set_header field value
allows redefining or appending fields to the request header passed to the proxied server. The value can contain text, variables, and their combinations.
So I can do
set $my_variable "some_value";
proxy_set_header x-my-header $my_variable;
Is it anyhow possible to use a variable for the field
parameter, i.e. have the header name base ...
Let's say I have a TLS certificate for a domain but I'm not sure if all user agents potentially connecting over HTTP would accept it. Can I obtain another certificate, signed by another certificate authority, and use it in such cases as a fallback, transparently to the user? If it's possible, how would the client-server communication to establish a secure connection proceed? And is this use case well kn ...
I am able to to an include on any filetype if the folder the file is in is non-virtual.
If it is a virtual directory using the include directive for example, it does not work on the PHP files:
...
location /common/ {
ssi on;
alias "Z:/My Website/My Custom Common/";
}
If test.php was in the root of the server, the include would work.
Here is my PHP block in nginx.conf:
location ~ \.php$ {
...

I recently started hosting a website with Apache with friends and made a few subdomains for each persons' area. I did the DNS records and all of them work and reverse proxy to the correct subdomain.... all except for mail. No matter whether I put in the actual email server or just my test subdomain for the reverse proxy, it always comes back with ERR_CONNECTION_REFUSED. I have tried everything from swit ...
I have a Nginx server acting as a reverse proxy for a couple services, the config is similar to this one
location /backend/service1 {
proxy_pass http://pathto/service1;
}
location / {
root /a/folder
}
location ~* (\.js|\.css)$
expires 8d;
root /home/files/abc/bcd;
}
My problem here is that recently the service1 from backend has to serve a couple static files like
I want to set couple of Location
tags in my Apache config. For instance: /image
, /file
, /audio
and to pass it to localhost:port/path
. Right now I'm using this for /image
:
<Location /image>
RewriteEngine on
Options +MultiViews +FollowSymLinks
AllowOverride All
ProxyPreserveHost On
ProxyPass "http://localhost:PORT/image"
ProxyPassReverse "http://l ...
I have an interesting condition resolution problem to resolve and have not had luck with on-line searching and looking through documentation for lighttpd yet. Many of those searches led to similar questions asked here and useful answers (for those questio so let's see how this one runs:
I have lighttpd running on a gateway router (OpenWRT, Or Turris OS if you prefer as it's a Turris Omnia) and it ...

I've run into the issue that I would like to enable nginx's autoindex for some directories but those also having their own index files.
So I was wondering if there was a way to make nginx serve it's autoindex page on a different path. Something like /path/to/dir/autoindex.html
I tried the following:
location ~* ^/path/to/dir/autoindex.html$ {
autoindex on;
autoindex_format html;
...
We're using Consul v1.11.1 KV to store some read-mostly data(about 50 bytes per key) . I'm doing performance test on Consul get recently. Frist I use a single server(8CPU Cores,2.4GHz; 16GB RAM; 300G SSD)
wrk -t8 -d30 -c200 http:8500/v1/kv/aa Running 30s test @ http://10.190.4.251:8500/v1/kv/aa
8 threads and 200 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.86ms 2.99ms 55.02ms 88. ...