Recent Questions - Server Fault |
- Applying IIS rewrite rules from multiple web.configs for single request
- rsyslog rewrite hostname before relay
- disable deprecated resource automatic conversion
- nginx redirect fastapi - invalid host in upstream
- Nginx multi-domain and multi web servers with one public IP
- Extract archive with tar but skip unchanged files
- bridge with bonding interface
- How to check script status after_script?
- Site-to-Site VPN for overlapping cloud networks
- When a VM Template was last used (to create a VM)?
- Connect redis-cluster(running in docker) from host machine
- file system error during bootup
- Apache 2.4 : Redirect a subdomain to a new domain except one url the / (index.html)
- ubuntu 20.04 - ChrootDirectory in sshd_config wont work with tokens %h or %u
- Routing between 2 networks on Linux
- How to change mail.log save configurations to make gzips for one month?
- Multiple nested HTML include directives with a nginx server
- Apache2 on Ubuntu EC2 goes down and does not restart
- Authorization Header Missing Upon NGINX Proxy Pass to subdomain
- How to set up DNS on google domains to host tomcat websites on the internet
- 504 Gateway Time-out on NGINX Reverse Proxy even though the container is up
- limit_except VS $request_method !~ ^(GET|HEAD|POST)$
- iptables TRACE No chain/target/match by that name
- Unable to increase IIS 7.5 upload limit (still 404 error)
- Internal corporate IIS 7.5 website not recognizing User's credentials - didn't used to ask for them
- Manual Multicast forwarding with Linux router
- How set owner of file cms.war for ftpuser and owner of cms folder for tomcat user?
- mail() sometimes not working, problem in sendmail parameter
- User with Outlook receiving emails every hour regarding Microsoft Exchange offline address book 0X8004010F
- Search and delete lines matching a pattern along with comments in previous line if any
Applying IIS rewrite rules from multiple web.configs for single request Posted: 02 Jun 2022 07:34 AM PDT I am trying to configure a directory structure in an IIS website with rewrite rules applying at various levels. For example, consider the following structure: I want to be able to access And I have configured the The one-level rewrite works when I access http://localhost/v1/hello.txt, but the two-level rewrite doesn't work for http://localhost/hello.txt. The IIS error page shows that the request is still resolving to the physical path Is there a way of getting this to work, or it is a limitation of the IIS rewrite module? Note that changing the rewrites to redirects allows the file to be served successfully. I'm aware that I can make the I've tried using Failed Request Tracing. The outer rule, |
rsyslog rewrite hostname before relay Posted: 02 Jun 2022 07:20 AM PDT I am setting up rsyslog in a multitenant environment to relay to a central server. Because it is multitenanted, I would like to prefix the hostname from the first rsyslog server with a customer specific prepend before relaying on to the central server. I had planned to set the prefix manually, however, the prefix is configured in another file on the server, and if this could be gathered from that file, that would be even better. Because the first server will be relaying from multiple hosts, the prepend has to be a dynamic rewrite that includes the original hostname rather than a hard-coded overwrite of the same hostname for all entries, which I've seen in some examples. Ideally, what I am trying do do is summarised by the following pseudocode: I will be responsible for both the intermediate relay and the central server, but each relay can host multiple customers, so I don't think that the rewrite can be done on the central server, but I have full control of both layers. Each customer is connected via a dedicated interface and I was planning for a separate ruleset attached to an input configured for each interface and the ruleset to include the customer specific prefix. For this reason, I think the config needs to be on the relay, but if there's a different way, then I am willing to try anything that meets the end-goal of making events customer-identifiable. The reason for wanting to use the hostname rewrite is because this is in-line with how other tools are configured in the environment and it is highly desirable to keep a homogenous setup. However, if that is not possible, another method may be considered if the first is not technically feasible. For example, each relay is connected to multiple customers via separate routing tables and end-client has a different hostname, e.g. site1-sw1 or site2-rtr2. However, the problem then is that the customer prefix is not in the name as that is our reference for knowing what customer the device relates to. In other systems we rename these names as cust1-site1-sw1 and cust1-site2-rtr2, especially as there may be a cust2-site2-rtr2, for example. We want the equivalent behaviour in syslog. What is the correct way to do this? |
disable deprecated resource automatic conversion Posted: 02 Jun 2022 07:10 AM PDT I'm trying to purposefully create K8S resources with deprecated Does anyone know how it could be done? Or even why it's acting like that? Here is the resource I'm trying to create: I tried to create this resource on several clusters with the following versions:
For each cluster, I was using the corresponding This is the created resource on cluster, as you can see, the I also tried with CronJob and version |
nginx redirect fastapi - invalid host in upstream Posted: 02 Jun 2022 06:59 AM PDT I have a fasapi and ui running on these two docker containers: ds-ai-ocr-main_web_1 is the html ui and dis-ai-ocr-main_api_1 is the fastapi which is like this: I buid my docker with the following command: and here is my docker compose which integrates ui and fastapi: Now I want to redirect these to containers to another nginx service on port 8080 with this nginx.conf file: The issue is that when I run the new nginx container with the following command: I receive this error: |
Nginx multi-domain and multi web servers with one public IP Posted: 02 Jun 2022 06:59 AM PDT I have two web servers with different domain and only one public IP. I found that I can multi domain in the same IP and same server as bellow, but I would to open the website depending on the domain. I tried but this configuration change the url to |
Extract archive with tar but skip unchanged files Posted: 02 Jun 2022 06:35 AM PDT I have a nightly process that unarchives a roughly 40 gigabytes large This step takes about 10 minutes, although often only a few files have changed inside the archive. I've seen that Unfortunately, this also skips over files that changed and |
Posted: 02 Jun 2022 05:55 AM PDT I have some scenario like below Line1 = eth1, eth2 Line2 = eth3, eth4 It is a network redundancy configuration, one proxy server is inserted in the middle. I try to make bonding with bond-ex(eth1, eth3), and bond-in(eth2, eth4) and will make bridge br0(bond-ex, bond-in). when i configure like this. Is communication on each line guaranteed? For example.. traffic eth2 <-> eth1 is OK, traffic eth2 <-> eth3 is not allow, until eth1 port is dead. Is this Possible? Thanks, |
How to check script status after_script? Posted: 02 Jun 2022 05:15 AM PDT In the after_sctipt section, if the script section fails or success, still it runs as I keep allow_failure: true But, how to check in after_script that whether script section failed/success so that I can pass the same in some api call in the after_script |
Site-to-Site VPN for overlapping cloud networks Posted: 02 Jun 2022 05:02 AM PDT I've got two cloud networks with following private addressing:
Need to establish IPsec site-to-site tunnel I thought about NETMAP but is it possible to translate whole /8 network in this case? |
When a VM Template was last used (to create a VM)? Posted: 02 Jun 2022 05:53 AM PDT I need to know when a VM Template was last used (to create a VM)? As I am working on a project of segregating unused templates in my vSphere environment, I need to know that answer. I tried |
Connect redis-cluster(running in docker) from host machine Posted: 02 Jun 2022 04:58 AM PDT I have used docker-compose with static ip to create redis-cluster, everything ran successfully but now I am stuck at how do I connect my host application to redis-cluster running in side docker. FYI, I am using java vertx redis client to connect. Please let me know the solution also I have assigned subnet random IP address. Also, I am working on macos. Docker version: 4.8.2 (79419) |
file system error during bootup Posted: 02 Jun 2022 03:37 AM PDT I am getting below errors through console of the linux machine. The machine runs a custom linux (genband / ribbon communication). I am unable to boot the machine using any live distro. Help solicited. Thanks, ZAKI |
Apache 2.4 : Redirect a subdomain to a new domain except one url the / (index.html) Posted: 02 Jun 2022 03:09 AM PDT I just changed the domain name, and i would redirect the following links :
Except one url (the /) (implies index.html) but not specied by user in the browser :
How can i do that please? this is what i tried (without success, except mentionned links) : Thank you |
ubuntu 20.04 - ChrootDirectory in sshd_config wont work with tokens %h or %u Posted: 02 Jun 2022 06:41 AM PDT I am trying to lock users into their home directory using a dedicated group in the sshd_config. The section of my group looks as follows Using %h or even /home/%u wont work when I try to connect with any user. I checked all permissions on their home directories and everything looks ok. Interestingly, when I provide ChrootDirectory with a static path, everything works fine. E.g the following config lets users connect (but in the wrong directory) man sshd_config says that I am using the %h token correctly:
Appreciate any hint since I spent hour on it already |
Routing between 2 networks on Linux Posted: 02 Jun 2022 03:06 AM PDT My system topology: On an ubuntu machine with 2 ethernet ports (eth0, eth1) i have connected another ubuntu machine as client and an OCRCamera (also client). the requirement is that the main ubuntu machine will be DHCP server and router, so that the ubuntu-client and the camera will both get IP address from the main ubuntu machine. The ubuntu-client and the camera need to be able to ping/ssh one another. with nmcli commands and configuration file in "/etc/dnsmasq.d/X", i have configured both eth0 and eth1 on the main ubuntu machine in a shared mode: "/etc/dnsmasq.d/XXX" config file: nmcli commands: This is how ifconfig on the main ubuntu machine looks like: The ubuntu client, and the camera connected to eth0 and eth1 respectively, got an ip addressed, and pinging is available: but, when i'm trying to ping from the ubuntu-client to the camera, it wont work: How can i make both clients communicate with each-other? Is there any routing solution to this issue? (Not ssh-tunneling) i have tried many things but i am stuck real bad on it and cant develop further :-( Please help! <3 |
How to change mail.log save configurations to make gzips for one month? Posted: 02 Jun 2022 07:14 AM PDT I want to change the postfix or system configuration to have all the information of each month saved in The system or postfix make new empty files after reaching some kb or maybe it has another form when the gz files are created. How and where can I change that in system or postfix cfgs? os is debian + standard postfix/dovecot cfgs. |
Multiple nested HTML include directives with a nginx server Posted: 02 Jun 2022 06:21 AM PDT I have index.html: Inside Framework.inc I have: However, when I open the page for index.html, after viewing the source code, I see the nested include did not happen and see the full include directive: How can we make sure nginx supports multiple levels of HTML includes? |
Apache2 on Ubuntu EC2 goes down and does not restart Posted: 02 Jun 2022 04:24 AM PDT History: We moved a Codeigniter 3 Installation from Bluehost to a T3.2xlarge. That single instance is hosting apache2 and a mysql server as a local database. On Bluehost, the instance was running fine, migration was done since Bluehost itself had outages and we wanted more reliable hosting. Error Since the migration the Page is randomly going down completely. Trying to restart apache2 with: Does not work, it requires a full reboot of the EC2 instance to get the service running again. After rebooting EC2, apache2 and mysql is running and the page is up without starting the services after the reboot of the instance. Debug attempt 1 Since the page went down when database intense crons were run, I assumed the mysql server was the bottleneck. Migrating the full database into a serverless RDS should eliminate all database related bottlenecks. The same database intense crons are finishing now. To further eliminate the cron being the reason for the system going down, I cloned the EC2 and used the clone to run the cron while the original hosts the webpage the domain is pointing to. However, random outages still persist. Debug attempt 2 Assuming it is a memory issue, after checking phpinfi.php I saw that PHP had 128Mb of RAM ( on a 32Gb machine ), so just to see if more RAM helps:
phpinfo confirmed the memory_limit is set to 8192M. Random outages still persist. Debug attempt 3 Checking the command: returns:
Checking the command: contains:
So I assume that Apache somehow is shutting down for some reason but unable to restart. Checking the command: does not throw errors Checking the command: does not throw errors Checking the command: shows:
Where I can see 2 things:
Checking the command: returns:
What does not show a MPM module. Checking the command: returns:
Checking the command: returns:
Question: And this is where I have been stuck now. Is there anything else I can check or read from the debug attempt 3 to see why apache stops/does not restart and requires a full server reboot? |
Authorization Header Missing Upon NGINX Proxy Pass to subdomain Posted: 02 Jun 2022 03:35 AM PDT Hi I'm running Laravel on NGINX server and I would like to use NGINX reverse proxy capability as an API gateway for my Laravel and other node API application. Here are my configurations: Application URL: What I want to do, is to redirect all API requests Here is my current and for my laravel application, I use the configuration given from Laravel themselves |
How to set up DNS on google domains to host tomcat websites on the internet Posted: 02 Jun 2022 06:59 AM PDT Excpectations / Target
Here are all the things that are working:
Problem: URL domain gets replaced with public IP address:Now that the port forwarding was successful I tried domain forwarding (before reading much about how DNS configuration is supposed to be done). This is how I did domain forwarding:
Now after doing this the address app1.example.com would redirect to app1 but the URL would would replace app1.example.com with 192.0.2.0:8081 Then, I read many articles and blogs telling to add an A type record or a CNAME type record but I could not understand how should I do it or what are the combination of records needed to make it work properly. I tried the combination (in the Domain section): Combination 1: Combination 2: But none worked and later it stopped making sense to me. Please help me with this I do not have any experience in setting up DNS for a website and/or whatever else is needed to meet the above mentioned expectations. UPDATEThanks to @fvu I was able to get started with nginx, configured it locally which is working and got the hang of how proxy server work(well the best case scenarios only) Now there is another problem, I am not able to successfully open the port 80 on the server machine. I tried and tested everything:
Now I will either have to fix the port-80-not-opening issue or change the nginx port to something else than 80 But if the port is changed I will be needed to be mentioned somewhere like in the DNS records or so.. which is a bit unclear to me. I was thinking maybe in router I could forward port 80 to 81 and have nginx run on 81 or so. but I need to try that out yet. Meanwhile if you could tell me something about what is the way to manage reverse proxy using nginx running on port other than 80. [AM IN HURRY SO MAY CONTAIN TYPOS OR LESS DETAIL. PLEASE ASK IF NEEDED!] |
504 Gateway Time-out on NGINX Reverse Proxy even though the container is up Posted: 02 Jun 2022 04:06 AM PDT I have the following Docker setup:
My problem is that when visiting the website a 504 error gets thrown out. I give environment variables to the WildFly container containing multiple VIRTUAL_HOST, LETSENCRYPT_HOST and LETSENCRYPT_EMAIL. I tried exposing the ports but that did not help. Port 8080 gets shown in My Nginx config in the container: P.S the comment that it cannot connect to the network exists because it did not automatically detect the server and I had to manually edit the internal IP. My |
limit_except VS $request_method !~ ^(GET|HEAD|POST)$ Posted: 02 Jun 2022 05:42 AM PDT I have been reading quite a bit about nginx lately and found 2 approaches online. The first appears to work at the server context level and the second is recommended for the location context level. Question. Is it appropriate to use Approach #1 ($request_method) embedded variable Approach #2 (limit_except) method |
iptables TRACE No chain/target/match by that name Posted: 02 Jun 2022 07:06 AM PDT I'm debugging the iptables for a kvm VM running a Buildroot image.When I try to set the following TRACE rule I get the error If I instead enable the LOG rule it works, and the packets are logged, but I need to check which rule, if any, is dropping the packages. Update: Information about the environment on which the problem occurs (inside the VM): |
Unable to increase IIS 7.5 upload limit (still 404 error) Posted: 02 Jun 2022 04:06 AM PDT I need to be able to upload large files to an ASP.NET application. I knew that IIS 7.5, by default, enforces a 30MB request limit. And I know that IIS throws a 404 error when you try to upload a file larger than the upload limit. I have tried both to set a 500MB upload limit in my application's I still get a 404 error with a file large 23.2MB I'm writing on SF because I believe it's not an application problem but a server configuration problem. What more can I check? |
Internal corporate IIS 7.5 website not recognizing User's credentials - didn't used to ask for them Posted: 02 Jun 2022 07:06 AM PDT I'm a developer that's been asked to maintain the IIS configuration for the web app that we're building, so bear with me. We have an internal website that is accessible to employees once they've logged into the Windows LAN. The servers are Windows Server 2008 R2, they are remotely managed by an external service provider, and they have Symantec Endpoint Protection installed on them. I rebooted our test server and now the website is asking for user credentials to view the page. Unfortunately, when I enter a valid user name and password for the corporate domain, it's not accepted. The server can still be Remotely connected through Citrix Jumpservers using a user account and the corporate domain, so it seems to be specific to IIS. The IIS permissions for the website are set to: I need to leave anonymous authentication disabled because of a flow through requirement in the system to Hummingbird's DM webservice. This was working before the reboot and there were other issues going on with the company at the time (internet proxy spontaneously denied all internet webpages, and a samba share wasn't remounting for service account users). The code wasn't changed, and the IIS configuration wasn't changed (to my knowledge), so it seems like something on the network has changed, or maybe the service account. This issue is likely going to get moved to corporate IT, but I need some sort of evidence that points to this being a network or security issue. Otherwise, they will simply dismiss it saying that it's our web app's fault or our IIS setup. Maybe it is, but I'm not sure what else to check and nothing was changed except rebooting the machine. Are there any tests or tools that I can run to test the authentication configuration and isolate potential causes? Given that the server has Symantect Endpoint Protection on it, is there a setting that may have been changed that would cause this behaviour? Are there other settings in the Server Management Console that might cause this behaviour? |
Manual Multicast forwarding with Linux router Posted: 02 Jun 2022 05:04 AM PDT I have a Linux router (Ubuntu). It is working well with unicast but with multicast routing/forwarding I have some trouble. The problem is that my hosts do not send igmp/mld messages thus the router does not learn that there are interested parties on a link. How can I manually configure the forwarding. So that multicasts coming to eth0 are forwarded out eth1. I was trying to make it work with the following command: route add -net 224.0.0.0 netmask 240.0.0.0 eth0 But this seems only to be used for outgoing traffic. I also tried out smcroute, but this daemon does not work on my Ubuntu. Is it possible with iptables to do the forwarding? Or with this route add command? Thx!! |
How set owner of file cms.war for ftpuser and owner of cms folder for tomcat user? Posted: 02 Jun 2022 06:01 AM PDT I'm using Tomcat Server. I would like the owner of the file When I uploaded |
mail() sometimes not working, problem in sendmail parameter Posted: 02 Jun 2022 06:01 AM PDT The mail() function in php works strange these days. The above script works if I use "php script.php" in command line. However, if I link to the page(http://domain.com/script.php) by browser, the mail will not be sent even if the mail function returns true. I googled about it and find a solution. It says "modify the php.ini file as following". Change sendmail_path = "/usr/sbin/sendmail -t -i" to sendmail_path = "/usr/sbin/sendmail -t" And it works for me right now. Does anyone know why removing parameter -i can solve the problem? it goes well with -i in the past few months!! |
Posted: 02 Jun 2022 07:22 AM PDT About 6 months ago we upgraded our Exchange server from 2003 to 2010. I have read 0x8004010F when downloading Exchange offline address book and found that this issue is the same as what I am having. I have also read the blog post mentioned the above question. The problem is that I cannot use this method because the 2003 Exchange server has been decommissioned (properly). Is there another solution so that this sync error can stop occurring? |
Search and delete lines matching a pattern along with comments in previous line if any Posted: 02 Jun 2022 05:04 AM PDT I have a requirement to write a shell script in csh to search and delete lines matching a pattern along with comments in previous line if any. For example if my file has the following lines Shell script #this is a test pattern1 format1 pattern2 format2 #format3 pattern3 If the search pattern is "pattern" The output should be as follows Shell script format1 format2 To be more precise the lines which have the pattern and the previous line if it begins with "#" should be deleted Thanks for the help |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment