Recent Questions - Server Fault |
- Nginx as reverse proxy for Docker-contained Tomcat
- Why my ubuntu's login page has black screen?
- Simulate network reset or failure in Windows
- Apache2 react app + laravel REST api on same domain
- How do I expand my VD on LSI 9361-16i?
- Cannot connect to a Postgres SQL instance from inside a pod within a GKE
- How to print the date a table was most recently updated
- squid 4.10 remove forwarded_for
- Port Forwarding over VPN
- What does the "same as parent folder" mean in DNS?
- Random Internal Server Error
- batch windows running process dissapear when explorer restarted
- PHP 7.4 with last version of sqlite3
- Client PC (Win7/Win8) cannot ping to VMware server (CentOS 8), but server can ping client
- RHEL PHP 7.3.5 with mysqlnd and apache
- PHP files displayed as text
- Forbidden You don't have permission to access this resource
- Does the ReFS filesystem reserve space for itself?
- Can I delete folders in /lib/modules/ after calling "apt-get purge"
- phpBB in a subfolder behind nginx
- phpMyAdmin new user can't connect to database
- Adding Tag (i.e. Source IP) to rsyslog for sending to rsyslog remote server
- Apache httpd mod_proxy POST issue on home page like abc.com
- Elastic Load Balancer awseb-e-g has zero healthy instances
- Restore deleted exchange 2007 public folder from backup .edb file
- Debian preseed.cfg - Language not set
- Error when i install mysql + galera
- Force ssh to ignore id_rsa permissions
- Load balancing architecture: sticky sessions and dynamic backends
- Reverse Proxy (mod_rewrite) and Rails (absolute paths)
Nginx as reverse proxy for Docker-contained Tomcat Posted: 28 Mar 2021 08:41 PM PDT Consider the following diagram: I have a Debian droplet from Digital Ocean where I need to deploy N Java applications inside individual Docker containers running a Tomcat instance. Each image has the following Dockerfile configuration: And is built with: Each container is started with the command: Every application works correctly and is accesible through the droplet IP address, port and application name: But I need to use a domain name (without SSL for now): So I'm using Nginx as reverse proxy to achieve this. The following is the Nginx configuration in default file: webapp1 file: webapp2 file: Here's the problem, when I deployed the first application and made it accesible through the domain name ( I'm a Nginx and Docker newbie. Please, help. |
Why my ubuntu's login page has black screen? Posted: 28 Mar 2021 07:47 PM PDT My main board is X570D4I-2T, I installed ubuntu the latest version. And the log in page is black screen. I can use Ctrl+Alt+f2 to go into the terminal screen. And i use After that, i reboot the system. It still has the black screen. What should i do to make log in page back? |
Simulate network reset or failure in Windows Posted: 28 Mar 2021 07:30 PM PDT I have to check if my server application can recover from transient network failures. The application listens on some ports and is a client to backend services. I would like to run some command or script that would drop and restore all connections. Is there some tool included in Windows that would allow that? For instance, is there a sequence of Maybe disabling the network card device and enabling it back? |
Apache2 react app + laravel REST api on same domain Posted: 28 Mar 2021 06:56 PM PDT Hello I am having trouble setting up my production server. I have little experience on this topic, I am a programmer but looking to understand more about hosting my own apps without using a third party. So my goal is I have my domain named ^ this conf is for my react app which contains an .htaccess file: And I have my laravel backend layer which is reffered to in my app as In /etc/hosts Mysql is correctly installed (I have a phpmyadmin.conf that is working perfectly, but is disabled for now, I have alrealy installed my databse and the logins, my laravel .env file has the default mysql port 3306 and my correct login) My problem is the following: My react app is timing out on the requests. |
How do I expand my VD on LSI 9361-16i? Posted: 28 Mar 2021 06:29 PM PDT I've got a 9361-16I installed in a supermicro sc847. I have the 2 expanders running in a cascaded configuration with both of them chaining off port 0-4 of the card. They are being exposed as enclosure 30 and 31. Array Info I have 24 Shucked Easystore drives in the front 24 slots running Raid6 for a total of 160TB. I just put 3 newly shucked drives in the back slots and wanted to expand my array onto them as well. I've had absolutely no problems doing this on the front side of the chassis. Array Info When I try to expand (migrate) the array, I get error code 13 Disk doesn't have enough capacity.Failed Command What I don't understand is why the controller thinks they are a different size because as far as I can tell they are exactly the same Drive E30:S2 Drive E31:S2 Any help would be appreciated! |
Cannot connect to a Postgres SQL instance from inside a pod within a GKE Posted: 28 Mar 2021 07:42 PM PDT I am new to Terraform and Google Cloud. I am trying to create a K8 cluster where pods inside the cluster could communicate with a Postgres server I have within the same VPC. However, when I try to connect to the server using a I even tried to Here is my terraform script for creating the VPC and the K8 cluster: Here is my terraform script file for creating the Postgres server: Here is my variables file (Same for both the above scripts): Any help is much appreciated! 🙏 |
How to print the date a table was most recently updated Posted: 28 Mar 2021 08:58 PM PDT I have a table that on one page admin can update from a local file to a database on MySQL but on a different page I want users to see how recent that data is. Is there a way I can do this without adding anything to the database itself? |
squid 4.10 remove forwarded_for Posted: 28 Mar 2021 06:03 PM PDT on a fresh unbuntu 20.04 server we installed squid version 4.10. We hope squid can help completely hide the requesting service's IP address. The goal is to make the squid server not look like a proxy server. So far we have tried and and Each change followed by restarting squid service. However even the requesting service's actual IP address has been hidden, there are still a list of IP addresses displayed by issuing curl: An example response is:
Using forwarded_for with either off, delete or truncate, IP-1 will always be there, although IP-1 is not the requesting service's IP address, but it seems to be an IP from the cloud service which is hosting our requesting server. And sometimes one of the IP-2,3,4 will be repeating too. Also following this post, additional directives were added according to the accepted and most upvoted answers, but they do not get rid of the additional IP address in the forwarded list either. Is there a way to completely remove IP-1,2,3,4? Leaving the squid-server-IP in the field is fine. The goal is to make the squid server not look like a proxy server. I hope I have explained clear enough, if there is anything needed to clarify please let me know. Thanks. |
Posted: 28 Mar 2021 04:54 PM PDT I have a site that is behind CG-NAT that stops me from being able to easily open ports. I have setup an openvpn server on a digital ocean droplet and have pfsense onsite configured to connect to it. This bit is all working fine and I can route all traffic over the VPN or selectively based on policy routing. What I am trying to achieve is to use my new cloud IP address to port forward over the VPN connection. I have added the below iptables rules which which make the port show up as "filtered" rather than "closed" 10.8.0.2 - pfsense ip on the vpn tunnel eth0 is the interface with the external IP on my VPS pfsense has firewall rules configured for the ports above on the VPN interface What am I doing wrong to get the ports opened up to the internet? Is there a better way to do this? Thanks |
What does the "same as parent folder" mean in DNS? Posted: 28 Mar 2021 04:40 PM PDT I was viewing the DNS management console and I noticed some records having the name "same as parent folder" , so what does it mean and why it is called like this ? Regards |
Posted: 28 Mar 2021 05:23 PM PDT We are receiving random internal server errors on one of our website. These internal server errors can sometimes appear only on some users but other users are not receiving it (at the very same time) and vice versa. The said internal server errors goes away after several page refresh. I have confirmed that this is not a script issue. I have tested it by using a
I have also consulted with our hosting which is If I may add, we are using Are there any other possible causes for the said error to emerge? The answer may seem to be opinionated but please don't hesitate to downvote if necessary and please if possible post a comment on what is/are your thought(s) with regards to this hard to pinpoint oddity |
batch windows running process dissapear when explorer restarted Posted: 28 Mar 2021 04:29 PM PDT i am running a program (command line tool) through bat file and minimize it to tray using menutools. sometimes later when a explorer.exe hang or restarted, the bat windows is nowhere to be found but the process still run in the background. how to reproduce: start cmd, ping localhost and minized to tray using menutools. restart explorer.exe Q : how to attached the program output into a bat windows again without restarting the process? Solution: i found that it may have issue with menutools. after using another software to minimize to tray such as trayit! or RBTray, does not produce the issue. |
PHP 7.4 with last version of sqlite3 Posted: 28 Mar 2021 05:22 PM PDT CentOS8 is distributed with sqlite3 version 3.26. I would like to build a php 7.4 RPM with the version 3.35 of sqlite3. Do you any advice to do so ? |
Client PC (Win7/Win8) cannot ping to VMware server (CentOS 8), but server can ping client Posted: 28 Mar 2021 05:55 PM PDT first of all I'm not a networking technician, so my networking lingo is very much limited. I'm trying to help my coworker with troubleshooting a problem. So far I only rely on using search engine to find English-language solutions, and I haven't got any for this one. We're trying to setup a (I quote from him) "web server httpd" using a CentOS 8 running on VMWare (the original server machine is running Win 10 and not a server version). Currently, the CentOS is running this command:
After that, we tried to open the said IP with the port on the vmware CentOS's Firefox. It opens up the intended page. The exact same can be said when I open the same thing on the machine's original OS. The problem right now is that we can't open the same IP on other PCs (run Win7 and Win10) that is connected to the same ethernet. Pinging the IP via cmd always gives What we're trying to achieve is to have the other/client PCs to be able to open up the VMware IP address and thus displays the web server we have. What we've tried so far are listed below, and they haven't worked so far:
What do we need to do to be able to get what we trying to achieve? EDIT: just to be clear, the IP address written above is not the real one used, I replaced some number to |
RHEL PHP 7.3.5 with mysqlnd and apache Posted: 28 Mar 2021 06:10 PM PDT I'll start by stating I'm not a server admin by trade, so I've been struggling with this task. PHP 7.3.5 was already installed on RHEL7 running Apache. I have installed MySQL successfully and now I am tasked with connecting to the MySQL DB from PHP. I have done this before on hosted services like Bluehost, but they make it easy. I am trying to install/enable the mysqlnd/mysqli modules to absolutely no avail. phpinfo() still does not show that it's enabled. I have tried to install packages and this is what I see when I locate: How do I enable this module so it becomes active in PHP? Updated with command from one of the answers below: |
Posted: 28 Mar 2021 08:04 PM PDT When I want to execute a php file it's displayed as text in my browser. I have a VPS at Hostinger I installed Ubuntu 18.04 with Webmin and LAMP(installed automatically). I checked the installation see below.
So everything seem to be installed correctly. My default folder is /var/www/html/ I do not us short tag in my code. I try to lunch a file called phpinfo.php with content: And plain text appear on the page. If the file begin with html code it's correctly rendered, even with a .php file. But the php part is not executed. e.g: Render : Hello But Render the code as plain text. |
Forbidden You don't have permission to access this resource Posted: 28 Mar 2021 09:04 PM PDT I have recently installed apache 2.4 plus mod_ssl I am using this apache as a proxy server and redirecting traffic to tomcat. The issue I am facing right now is that everything works without HTTP but I do see an error when I try to access with https. Not Found The requested URL was not found on this server. httpd.conf: This is I am using to redirect the traffic to my tomcat. Everything work but the site doesn't come up with HTTPS. |
Does the ReFS filesystem reserve space for itself? Posted: 28 Mar 2021 09:24 PM PDT I recently formatted a single disk from the line of new 14TB Seagates on Windows 10 with ReFS, with a 4K block size, to use the full capacity available and noticed that out of the approximately 12.7TB it presents as usable that it already reports that 100GB has been consumed though the disk is empty. I checked in disk manager and saw no additional partitions added (plus this would be space consumed within the same partition) and checked for hidden files, but turned up nothing. 100GB consumed for an empty disk seems a little surprising unless it is used for some kind of parity, but also I'm fairly new to using ReFS and don't know all its features. I've noticed from Microsoft's documentation that ReFS offers something called "mirror-accelerated parity", but I am not using ReFS across two or more disks, but rather a standalone disk. Could the 100GB be reserved for parity or some other feature for preventing data corruption (also mentioned in the Microsoft documentation)? And would it matter if I chose an 8K block size instead? Any thoughts on what could be using that space? I am asking this from a security standpoint because I am concerned that to an auditor I wouldn't be able to explain the space usage on a freshly formatted system if there were suspicion of steganography or other forms of hidden data resulting from various methods of hiding malicious software that might actually be occupying space on a drive while not being visible - in environments where monitoring of such things is very strict. Addendum: Here is some additional information I pulled about the drive from System Info: There is a delta in size between the Total Disk Size and the Partition Size of 122.99GB, but this does not match the now 101GB (seems like it grew by 1GB since I last looked at it - though the disk is still empty) that is reported used. And again, the 101GB is reported as consumed within the partition itself. The disk is still empty, though I did test creation of a .txt file and then delete it. If there is parity I wonder if creation of that file is what increased the utilization reported (after the fact), even though the file was deleted. Additional reading on ReFS: - https://www.iperiusbackup.net/en/refs-vs-ntfs-differences-and-performance-comparison-when-to-use/ |
Can I delete folders in /lib/modules/ after calling "apt-get purge" Posted: 28 Mar 2021 04:33 PM PDT I've already call Can I also remove some of these packages? |
phpBB in a subfolder behind nginx Posted: 28 Mar 2021 07:00 PM PDT I am trying to deploy a phpBB forum behind a load balancer that will distribute the traffic:
Therefore, I want to have phpBB installed on instance A and available under On instance A, I am running nginx. Here's my nginx.config (with the important stuff only): Here are my problems:
What am I doing wrong ? |
phpMyAdmin new user can't connect to database Posted: 28 Mar 2021 05:05 PM PDT I created a user in phpMyAdmin and I only want to allow query, insert and update operations, and in my php file I am trying to connect to the MySQL database but always get the error |
Adding Tag (i.e. Source IP) to rsyslog for sending to rsyslog remote server Posted: 28 Mar 2021 09:04 PM PDT Is there any way to adding a Tag to Logs which sent by rsyslog? I send these logs to another server, and I can detect source IP as destination, but I need to adding tag in source. |
Apache httpd mod_proxy POST issue on home page like abc.com Posted: 28 Mar 2021 05:05 PM PDT I have apache server 2.4.18 on centos as a web server in the front end. Now I have multiple websites which are deployed on tomcat 8.0.33 as webapps in the default webapps folder of tomcat. Configuration on apache end: Two .war files by the name, abc.war & def.war are deployed to tomcat webapps folder. abc.com works absolutely fine, as it is just an html site. but def.com is a dynamic site & it has a login form on home page. The home page after successful login should load user profile page which is: login page url -> def.com user profile page -> def.com/profile.htm Note that the home page loads successfully (means GET is executing successfully) on browser but when user tries to login(which is a POST request), it somehow tries to load: def.com/def/profile.htm Also note that if I change configuration to : then I am successfully able to open def.com/def/ & I can also successfully able to login & open def.com/profile.htm but I want my home page to be on def.com |
Elastic Load Balancer awseb-e-g has zero healthy instances Posted: 28 Mar 2021 06:03 PM PDT I have an Elastic Beanstalk (EB) set up with a running application on a PHP/Apache server. The application was running OK since many hours ago when the EB's health got subtly RED and I don't know why. No logs was available on EB > My Application > Logs > Request Logs > Full Logs (and also Last 100 Lines). And these were the last events on my EB until its health got RED, on EB > My Application > Events: The third event above shows that Load Balancer has zero healthy instances. Why? Also, we often receive this via email from AWS:
If the problem is with the sa-east-1b zone, why didn't AWS automatically launch an instance on sa-east-1a or sa-east-1c zones, as we don't specify any Availability Zone? We have auto-scaling set up for any Availability Zone. Our Load Balancer is set up for the Availability Zones that we want: sa-east-1a, sa-east-1b or sa-east-1c, but the option Cross-zone load balancing is NOT enabled, because we fear that it might launch instances out of São Paulo (sa-east) region - what we don't want it to do. So, should I enable the option Cross-zone load balancing on Load Balancing for AWS to get our application up on any Availability Zones in São Paulo (sa-east) region? Any ideas?! |
Restore deleted exchange 2007 public folder from backup .edb file Posted: 28 Mar 2021 07:06 PM PDT We are running a stand-alone instance of Exchange 2007 without replication of any kind. We do have nightly backups. A user deleted a public folder, and I need to restore that from one of our full database backups (I have the .edb file). I have tried creating another storage group, but when I try to create another public folder database, I get an error stating there can only be one public folder database. I also tried using the Recovery Storage Group, but learned that is only usable for mailbox restores. My next thought was to spin up a new Exchange VM and somehow copy it over from there, but I'm not sure if that's best...or how exactly to do it. What are my best options? |
Debian preseed.cfg - Language not set Posted: 28 Mar 2021 04:13 PM PDT I'm trying to write a preseed.cfg which should be used for a full automated installation of Debian wheezy. For some reasons the installer is still asking to select a lanugage even if I set this in my preseed.cfg. I got these options from the official Debian page: https://www.debian.org/releases/wheezy/example-preseed.txt |
Error when i install mysql + galera Posted: 28 Mar 2021 08:04 PM PDT I want install mysql server + galera in my vps Centos 6.5. When I install terminal show: This is my my.cnf **¿How can i install galera + mysql?* |
Force ssh to ignore id_rsa permissions Posted: 28 Mar 2021 08:44 PM PDT I have a very specific requirement that requires a private key to be used by multiple users. I know how bad this is. The problem is that if the identity file's permission is to permissive (444 in my case) ssh will simply ignore them. From the man pages
Is there a way to force ssh to use the key without checking the permissions? |
Load balancing architecture: sticky sessions and dynamic backends Posted: 28 Mar 2021 06:03 PM PDT I'm struggling to find a solution to a specific load balancing requirement. It seems that various combinations of HAProxy, Nginx, Varnish and Apache's mod_proxy_balancer can do some but not all of what we need. My question is whether anyone can suggest a suitable configuration that would (perhaps including software that we may not have considered, but it will need to be FOSS). The key requirement is, unfortunately, sticky sessions. We have a large, complex Tomcat app that somewhat abuses the HTTP Session, and it utilises frameworks that do the same. Converting to a stateless design or replicated session have both been investigated and discounted. Additionally, the stickiness MUST be based on a cookie and not an IP hash as we have large spikes from corporate clients where many thousands of users can all appear to be hitting the site at the same time from the same IP address. Second most important requirement is a dynamic backend. This application runs in a cloud (not AWS) and app servers come and go from time to time based on automatic or manual scaling. Thirdly, we need to be able to mark servers as "quiescing" so that they will continue to honour existing sessions but will not be handed new ones. When all current sessions end, the server can be turned off or upgraded/restarted. There are some additional complications/requirements but it's meeting the three above that seems to be presenting the most difficulty. From research so far, I think the following statements are true:
Would really appreciate any pointers or insights. |
Reverse Proxy (mod_rewrite) and Rails (absolute paths) Posted: 28 Mar 2021 07:06 PM PDT I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example
such that a URL like I have a large, and ever expanding number of backends, so they can not be explicitly listed anywhere other than a database. This is no problem for mod_rewrite using a prg:/ rewrite map reverse proxy. The question is, the urls returned by rails helpers have the form
mod_proxy_html seems like the right idea, but it doesn't seem to be as dynamic as I would need, since the rules need to be hard coded into the config files. Is there a way to fix this server-side, so that the links will be routed correctly? |
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