Recent Questions - Server Fault |
- Docker Nginx returning 404 on install.php
- Start getty on pty
- Best MySQL/MariaDB scaling strategy for shared hosting provider
- Glassfish : Class name is wrong or classpath is not set for : com.mysql.cj.jdbc.Driver Please check the server.log for more details
- Windows Service running on Windows 10 to persistently connect to network share from comp running windows 7 - no domain
- How to create a docker container that simply forwards a range of ports to another, external IP address?
- I am using Gmail with a vanity account alias and external SMTP server (AWS SES). My first email is not being threaded
- How to Trace Who was Using my Mail Relay on Spamming?
- Trying to force Apache to use only TLSv1.3 on a vhost, but it refuses to disable TLSv1.2
- Is it possible to receive email for aliases of multiple domains on a single KVM?
- Why does AWS use host names for their load balancers instead of IP addresses?
- cookie is lost on refresh using nginx as proxy_reverse. I like the cookie and would like to keep it set in the browser
- Hard limiting monthly egress to prevent charges
- Kubernetes - Nginx Frontend & Django Backend
- How to Utilize NIC Teaming for Hyper-V VMs with VLAN in Windows Server 2016
- Determine which TLS version is used by default (cURL)
- Automatic profile configuration in Outlook 2016 / Outlook 365
- Why are "Request header read timeout" messages in error log when page loads are short?
- Ubuntu 15.10 Server; W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast
- Unable to RDP as a Domain User
- UWSGI Bad Gateway - Connection refused while connecting to upstream
- iLO 3 Firmware Update (HP Proliant DL380 G7)
- How do I change Jboss' logging directory
- Configure Citadel to be Used For sending email using smtp
- Change local password as root after configuring for MS-AD Kerberos+LDAP
- Create self-signed terminal services certificate and install it
- Errors getting apache working with fcgi and suexec
- Server Room Temperature Monitoring - Where to stick my probes?
- how to install ssl on tomcat 7?
- How to copy many Scheduled Tasks between Windows Server 2008 machines?
Docker Nginx returning 404 on install.php Posted: 18 Apr 2021 09:53 PM PDT Let me first describe the server structure. My Wordpress is hosted inside a docker container along with nginx on lets say Server B (https://serverB.com). But I am trying to access the Wordpress site through (https://serverA.com/blogs). Now, if configure WP_HOME to https://serverB.com, everything runs smoothly, I can install Wordpress and everything. But if I change the WP_HOME to https://serverA.com/blogs, all of a sudden I am getting 404 - Not Found Error. (I downed the docker containers and deleted the volume). I added the following line on wp-config.php as well. 404 - Not Found error is receiving on docker's nginx. That means the request has travelled all the way to the docker's nginx and then either it does not know what's happening or where's the file... Error message from docker logs: docker-compose.yml file Please let me know if I have to add any more information. Thank you |
Posted: 18 Apr 2021 09:25 PM PDT I'm trying to write a ascii to baudot converter (for a teletype, obviously with dropped characters) using pseudoterminals. The idea is to have a pty master/slave pair, write to the slave, read from the master, convert ascii to baudot, and send to teletype. Input from the teletype will be read in, converted from baudot to ascii, sent to the master, and processed by the slave. I can do this with a direct serial connection (screen /dev/pts/x), but agetty doesn't seem to work. I'm monitoring the master with and can see data sent through screen, but not agetty. The agetty command I'm using is (where How do I start a getty on a pseudoterminal? Does getty look for a special response character (similar to a modem) before sending data? The getty process is not sending any data to my pseudoterminal. |
Best MySQL/MariaDB scaling strategy for shared hosting provider Posted: 18 Apr 2021 09:56 PM PDT As a small shared hosting service provider our MariaDB server is going to face a hardware limit very soon. So we want to add another machine for another MariaDB instance. Our goals are:
What I am thinking of is something like an instance which works as something like a proxy, which also knows that which database is on which instance and then automatically redirect queries to that instance, then receives and forwards the to the client. Here are my Question: Is this possible? What is it's technical name and how can we implement it in MySQL? Is there any better way to fulfill our goals? Bests, |
Posted: 18 Apr 2021 07:09 PM PDT I build JAVA EE project and choose glassfish as a server and mysql as a database, when i trying integrate mysql database in glassfish server, there are some errors : I fill properties database like name , server , PortNumber .. etc. when I test connection by press on ping button , this message displayed this message in Server.log |
Posted: 18 Apr 2021 07:01 PM PDT I'm trying to write a Windows service that will persistently connect and pull files from a network share on a windows 7 computer. Both computers are on a private network and the network share has read permissions set to "Everyone" and write permissions set to administrators. Neither computer is on a domain. I'm able to access the network share through the GUI without entering a username or password. However, when I use the UNC path in a windows service running as a network service, it says the network UNC path doesn't exist. I've also tried to create a user on the Windows 10 computer with the same credentials as a non-administrative user on the windows 7 computer (as suggested here) with no luck there either. Does anybody know how to accomplish this? |
Posted: 18 Apr 2021 06:36 PM PDT I would like to create a docker container that all it does is forward any connection on a range of IP addresses to another host, at the same port. I've looked at iptables, pipeworks and haproxy and they look rather complex. socat and redir look like they could do what I want, but they don't take a port range. |
Posted: 18 Apr 2021 07:00 PM PDT So this is a minor inconvenience but I am curious if anyone well versed in email forwarding and Gmail can help me. I have a vanity domain I'll call code@coder.dev. I am using it as an alias for my personal gmail code@gmail.com.
Note that if I reply to D, and stranger replies, and I reply back, etc. etc., all those messages are threaded together. Because at this point, we are building up the References: list with ids we have both seen before. It's only A that is left out. What's funny/sad is message A also contains X-Gmail-Original-Message-ID: A, and that makes it to stranger@gmail.com, but then stranger doesn't send that header back in message C or use it in the References: list. Google doesn't know how to talk to itself :| Also see https://workspaceupdates.googleblog.com/2019/03/threading-changes-in-gmail-conversation-view.html |
How to Trace Who was Using my Mail Relay on Spamming? Posted: 18 Apr 2021 04:21 PM PDT I have a Postfix mail relay server running as Exchange smarthost as well as hosting another mail locally. Last week I observed an attack on this server, someone is using it to send massive emails to different destinations. I can't find out where it is connected from and the "from" address is also masked. Below is the mail logs: How to check where is the attack source? Is there a way to limit only a specific range of domains that can be used for mail relay? I'm not a Postfix professional, so any suggestions/advises would be appreciated. |
Trying to force Apache to use only TLSv1.3 on a vhost, but it refuses to disable TLSv1.2 Posted: 18 Apr 2021 04:17 PM PDT I have a test vhost on my web server for which I'm trying to enforce TLSv1.3-only but Apache refuses to disable TLSv1.2. TLSv1.3 does work however the following validation services all show that TLSv1.2 is still running on my vhost: https://www.digicert.com/help/ https://www.ssllabs.com/ssltest/ https://www.immuniweb.com/ssl/ I've tried a few different ways including all of the following: System info: Global SSL configuration: vhost configuration: info from "apachectl -S": I have it commented out of the vhost in question but other vhosts are using a letsencrypt/options-ssl-apache.conf which I'll include here in case it could be interfering somehow: |
Is it possible to receive email for aliases of multiple domains on a single KVM? Posted: 18 Apr 2021 02:37 PM PDT I'm pretty new, so please do go easy on me. :) Tl dr; is it possible to receive email for aliases of multiple domains on a single KVM? I had a digital ocean server with multiple websites hosted on it, and needed email aliases of more than one of those domains. On several occasions, mail was not delivered, I believe it's possible that this is because the corresponding domain did not use a PTR record (Could be wrong, I'm new, here.) The PTR records with DO are tied to droplet names, so it seemed impossible to have PTR records for multiple domains, thus I was stuck with incomplete MX records and that may have been the cause of my undelivered mail. I was thinking, there must be a way around this issue, besides renting another KVM. please share your advice. Best regards, Glenn |
Why does AWS use host names for their load balancers instead of IP addresses? Posted: 18 Apr 2021 03:03 PM PDT I'm getting to know how load balancers work in cloud platforms. I'm specifically talking about load balancers you use to expose multiple backends to the public internet here, not internal load balancers. I started with GCP, where when you provision a load balancer, you get a single public IP address. Then I learned about AWS, where when you provision a load balancer (or at least, the Elastic Load Balancer), you get a host name (like With the single IP, I can set up any DNS records I like. This means I can keep my name servers outside of the cloud platform to set up domains, and I can do DNS challenges for Lets Encrypt because I can set a TXT record for my domain after setting an A record for it. With the host name approach, I have to use ALIAS records (AWS has to track things internally) so I have to use their DNS service (Route 53). This DNS difference is a slight inconvenience for me, because it's not what I'm used to, and if I want to keep my main name servers for my domain outside of AWS, I can. I would just delegate a subdomain of my domain to Route 53's name servers. So far, this DNS difference is the only consequence of this load balancer architectural difference that I've noticed. Maybe there are more. Is there a reason GCP and AWS may have chosen the approaches they did, from an architecture perspective? Pros and cons? |
Posted: 18 Apr 2021 02:53 PM PDT I'm new to Nginx and Ubuntu - have been with windows server for over a decade and this is my first try to use ubuntu and Nginx so feel free to correct any wrong assumption I write here :) My setup: I have an expressjs app (node app) running as an upstream server. I have front app - built in svelte - accessing the expressjs/node app through Nginx proxy_reverse. Both ends are using letsencrypt and cors are set as you will see shortly. When I run front and back apps on localhost, I'm able to login, set two cookies to the browser and all endpoints perform as expected. When I deployed the apps I ran into weird issue. The cookies are lost once I refresh the login page. Added few flags to my server block but no go. I'm sure there is a way - I usually find a way - but this issue really beyond my limited knowledge about Nginx and proxy_reverse setup. I'm sure it is easy for some of you but not me. I hope one of you with enough knowledge point me in the right direction or have explanation to how to fix it. Here is the issue: My frontend is available at travelmoodonline.com. Click on login. Username : mongo@mongo.com and password is 123. Inspect dev tools network. Header and response are all set correctly. Check the cookies tab under network once you login and you will get two cookies, one accesstoken and one refreshtoken. Refresh the page. Poof. Tokens are gone. I no longer know anything about the user. Stateless. In localhost, I refresh and the cookies still there once I set them. In Nginx as proxy, I'm not sure what happens. So my question is : How to fix it so cookies are set and sent with every req? Why the cookies disappear? Is it still there in memory somewhere? Is the path wrong? Or the cockies are deleted once I leave the page so if I redirect the user after login to another page, the cookies are not showing in dev tools. My code : node/expressjs server route code to login user: Frontend - svelte - fetch route with a form to collect username and password and submit it to server: Now my Nginx server blocks : I tried 301-302-307 and 308 after reading about some of them covers the GET and not POST but didn't change the behavior I described above. Why the cookie doesn't set/stay in the browser once it shows in the dev tools. Should I use rewrite instead of redirect???? I'm lost. Not sure is it nginx proxy_reverse settings I'm not aware of or is it server block settings or the ssl redirect causing the browser to loose the cookies but once you set the cookie, the browser suppose to send it with each req. What is going on here? Thank you for reading. |
Hard limiting monthly egress to prevent charges Posted: 18 Apr 2021 02:59 PM PDT I've got a Google Cloud VM, which I'm currently running on the free tier. This gives me 1GB free egress per month before I start getting charged. Because of this, I want to hard limit the egress of the VM to never exceed this cap in a given month. After searching for how to do this for a while, every piece of info seems to be generalised traffic shaping to limit peak bandwidth, rather than setting monthly limits. Eventually I stumbled across this guide, which implies what I want to do is possible with tc. However, this particular use case doesn't suit my needs as the bandwidth limits reset at the start of the calendar month and this seems to be a rolling limiter. Ideally, I would like this to work in two tiers. The first is 900MB of carefree usage per calendar month, which can be used as quickly or as slowly as is needed. Once that has been used, the remaining 100MB should be allocated as is described in the guide linked above, accumulating in the bucket. Then, at the end of the calendar month, all limits are reset. Is there a simple way to go about this? Annoyingly GCP doesn't have the ability to monitor the cumulative egress and set an alert, the best I can do is set a budget alert once I've been charged. I'd ideally like to stop this from happening before, rather than after I'm charged. |
Kubernetes - Nginx Frontend & Django Backend Posted: 18 Apr 2021 06:52 PM PDT I'm following along this doc: https://kubernetes.io/docs/tasks/access-application-cluster/connecting-frontend-backend/ the mainly difference is that my app is a Djago app running on port 8000. The frontend pod keeps crashing:
Could someone point out my mistakes, please. deploy_backend.yaml
service_backend.yaml
deploy_frontend.yaml
service_frontend.yaml
nginx.conf
|
How to Utilize NIC Teaming for Hyper-V VMs with VLAN in Windows Server 2016 Posted: 18 Apr 2021 01:49 PM PDT I have two Windows Server 2016 with Hyper-V installed. Each server has two ethernet adapters. And each Hyper-V has several VMs. My goal is VMs can communicate with each other if they fall into the same VLAN. In order to make the network connection redundancy, I created the network teaming on the physical machine. The teaming is using "Switch Independent" with "Address Hash" options. On the Virtual Switch Manager, I created an external adapter by selecting the teamed adapter (Microsoft Network Adapter Multiplexor Driver). Under each VM, I create a virtual adapter with VLAN tagged. However, the VMs in the same VLAN cannot communicate with each other. On the switch side, I have already configured trunk mode for all the ports connected with the physical machines. If I remove the teaming, the VMs can communicate with VLAN tags. How to address this issue? |
Determine which TLS version is used by default (cURL) Posted: 18 Apr 2021 06:49 PM PDT I have 2 servers that both run
Why does one server default to a TLSv1.2 connection and the other does not? (I know I can force it with |
Automatic profile configuration in Outlook 2016 / Outlook 365 Posted: 18 Apr 2021 02:49 PM PDT I'm in the process of reconfiguring Outlook 2016 clients with an Exchange 365 backend. The majority of my users need access to one or more shared mailboxes to receive and to send e-mail. Using the default option to give these users full mailbox access to the shared mailboxes, that is easily and automatically accomplished. With some tweaking (Set-MailboxSentItemsConfiguration), I can even have a copy of send items stored in the send items folder of the shared mailbox, so everyone is up to date of what is being send. Nice. But I also need to have seperate signatures for all mailboxes and I also need to be able to configure different local cache period settings. For the primary mailbox I need to keep a local copy of about 6 months (for fast searching), but for the shared mailboxes one month would do. This keeps the local .ost files a lot smaller, compared to the scenario where all shared mailboxes have the same cache period. The only way I know how to accomplish this, is by using extra Outlook accounts instead of using extra Outlook mailboxes. Now I need the find a way to add the extra accounts automatically to the Outlook profile. In the pre Exchange 365 era, I would have used Microsoft's Office Customization Tool to create a basic .prf file, use VBscript to find the shared mailboxes the current user has access to and add these to the .prf profile. Have the user start Outlook with the /importprf switch, and voila. But now I'm already stuck at creating the .prf file with the OCT. What to use for Exchange Server name? This weird guid you find after manually configuring Outlook with Exchange 365? Maybe the OCT is not the best option. I also found a PowerShell tool called PowerMAPI (http://powermapi.com) but it's hard to find out if this works with Exchange 365. The same goes for Outlook Redemption (http://www.dimastr.com/redemption/home.htm). Does anyone have experience with these tools? Or am I making this far more complicated than needed? I'm open to all suggestions... |
Why are "Request header read timeout" messages in error log when page loads are short? Posted: 18 Apr 2021 01:49 PM PDT I am running a Rails application with Apache 2.4.10 and These messages appear in the error log about two to three seconds after the end of my page load. However, the complete page load takes only a few seconds. I am using Since the page load only takes a few seconds I do not understand why the Why are these messages appearing and what can I do to remedy this? |
Ubuntu 15.10 Server; W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast Posted: 18 Apr 2021 01:24 PM PDT I'm running Ubuntu 15.10 server on a Asrock E3C226D2I board. When I get a kernel update or run update-initramfs -u I get a warning about missing firmware: I can't find much information on this particular firmware, other than it is probably for my video card. Since I'm running a server I don't really care about graphics (no monitor attached). All works fine so I'm ignoring it for now but is there a way to fix this? |
Unable to RDP as a Domain User Posted: 18 Apr 2021 02:49 PM PDT I am facing a problem remoting into a machine using a Domain account. Problem Facts :
How Can I troubleshoot this issue ? |
UWSGI Bad Gateway - Connection refused while connecting to upstream Posted: 18 Apr 2021 04:58 PM PDT Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am just practicing. My config file is as follows (it's included in the nginx.conf file): server { listen 80; server_name 104.131.133.149; And my uwsgi file is: As far as I can tell I am passing all requests on port 80 (from nginx.conf) upstream to localhost, which is running on my VH, where uwsgi is listening on port 8080. I've tried this with a variety of permissions, including 777. If anyone can point out what I'm doing wrong please let me know. |
iLO 3 Firmware Update (HP Proliant DL380 G7) Posted: 18 Apr 2021 03:46 PM PDT The iLO web interface allows me to upload a The iLO web interface redirects me to a page in the HP support website (http://www.hp.com/go/iLO) where I am supposed to find this Where can I find this And also a related question: what is the latest iLO 3 version? (for Proliant DL380 G7, not sure if the iLO is tied to the server model) |
How do I change Jboss' logging directory Posted: 18 Apr 2021 04:58 PM PDT I'm running jboss-as 7.2. I'm trying to configure all log files to go to /var/log/jboss-as but only the console log is going there. I'm using the init.d script provided with the package and it calls standalone.sh. I'm trying to avoid having to modify startup scripts. I've tried adding JAVA_OPTS="-Djboss.server.log.dir=/var/log/jboss-as" to my /etc/jboss-as/jboss-as.conf file but the init.d script doesn't pass JAVA_OPTS to standalone.sh when it calls it. The documentation also says I should be able to specify the path via XML with the following line in standalone.xml: However, it doesn't say where in the file to put that. Every place I try to put it causes JBoss to crash on startup saying that it can't parse the standalone.xml file correctly. |
Configure Citadel to be Used For sending email using smtp Posted: 18 Apr 2021 03:58 PM PDT Sorry for this foolish question, but I have less knowldge about servers. So bear with me! I have configured Citadel as directed in linode documentation and can login using the front-end for accessing citadel. I can send emails using that. How can i configure smtp and use it as a mail service for sending emails from laravel which is a php framework?. Any help will be appreciated. I have configured it as After this i have entered mail name in /etc/mailname as and i can access adn sendmail using https://mail.domain.com My laravel mail.php file 'driver' => 'smtp', |
Change local password as root after configuring for MS-AD Kerberos+LDAP Posted: 18 Apr 2021 09:58 PM PDT I have followed this excellent post to configure Kerberos + LDAP: However, there are some local users used for services. If I switch to the local user and do My configuration is similar to the site I posted above, and everything works fine, I just can't change the local users' passwords as root. Thanks in advance for any help.
Update 1 2013-01-31: |
Create self-signed terminal services certificate and install it Posted: 18 Apr 2021 04:51 PM PDT The server RDP certificate expires every 6 months and is automatically recreated, meaning I need to re-install the new certificate on the client machines to allow users to save password. Is there a straightforward way to create a self-signed certificate with a longer expiry? I have 5 servers to configure. Also, how do I install the certificate such that terminal services uses it? Note: Servers are not on a domain and I'm pretty sure we're not using a gateway server. |
Errors getting apache working with fcgi and suexec Posted: 18 Apr 2021 03:58 PM PDT I have a Debian 6 server and I was previously using Apache with mod_php but decided to switch to using fcgi instead since Wordpress was somehow causing Apache to crash. I have the following in my site's Apache config file: Everything works fine if I don't include the Everything was installed using the packages, so I don't even know where the docroot is. Here is my suexec info: And the permissions on my php5 file if that has anything to do with it: |
Server Room Temperature Monitoring - Where to stick my probes? Posted: 18 Apr 2021 06:09 PM PDT I have a small server room approx 7' x 12' with an A/C unit dedicated to this room that is positioned on of the short (7') sides and blows air across the room towards the other short (7') side. The server room is set to temp of 69F but usually will only ever get down to around 70-71F (temp measured by the thermostat control panel on the wall). I have two 1-wire temp. monitor gauges plugged into a linux box that graphs out measured temperatures. Right now the temp. monitor gauges hang on one of the long (12') sides and are positioned closely together. I don't think this is ideal measurement and an accurate representation of the room's real temperatures and would like to fix this. Where is it best to position the temperature sensors in a room like this? I don't think hanging them from the drop-ceiling would work since then the A/C unit would blow cold air on them (skewing the measurements terribly). |
how to install ssl on tomcat 7? Posted: 18 Apr 2021 06:49 PM PDT I know this question might sound too easy and I should had read all docs available on internet, the true is that I did, and I had no luck, its kinda confusing for me, I have installed many times this thing but for Apache, never for Tomcat. I want to install a certificate from GoDaddy, so, I followed this instructions I created my keyfile like this I changed tomcat for mydomain.com .. is it wrong? I created the keystore, later the csr, after that the problem comes, I add to server.xml on the config folder Later I imported the certs and I did, but I dont have a gd_intermediate.crt and the last step is reading in other blogs I saw they import here the crt , but tomcat is the user I have to leave? or its for example only?? In the docs of tomcat I found this (http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html)
but I have no idea what is a "chain certificate" ... can somebody help me? I am really confused and lost. I am using Tomcat7 Thanks. |
How to copy many Scheduled Tasks between Windows Server 2008 machines? Posted: 18 Apr 2021 04:13 PM PDT I have several standalone Win2008 (R1+R2) servers (no domain) and each of them has dozens of scheduled tasks. Each time we set up a new server, all these tasks have to be created on it. The tasks are not living in the 'root' of the 'Task Scheduler Library' they reside in sub folders, up to two levels deep. I know I can use schtasks.exe to export tasks to an xml file and then use: to import them on the new server. The problem is that schtasks.exe creates them all in the root, not in the sub folders where they belong. There is also no way in the GUI to move tasks around. Is there a tool that allows me to manage all my tasks centrally, and allows me to create them in folders on several machines? It would also make it easier to set the 'executing user and password'. |
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