Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [web-server]

Refers to the software or hardware that make up a webserver, delivering content on a private or public website.

0
votes
0answers
25 views

Proper way to set up web server for single-page application

What I have usually done with single-page applications is to have a single monolithic application server that returns both HTML and responds to AJAX requests. I'd put all AJAX endpoints (typically ...
2
votes
1answer
44 views

Scaling up / reorganising VPS infrastructure for SMB

I work for a digital agency, where we design, build and host websites for our (local) clients. Currently, we have approx. 80-90 sites scattered on 11 VPS instances. 99% of those sites is WordPress ...
0
votes
0answers
18 views

IIS does not load site bindings for HTTP protocol

I have an applicationhost.config file which is configured for both http and https protocols. <site name="Application.Namespace" id="2"> <application path="/" applicationPool="...
0
votes
1answer
28 views

Redirecting HTTPS

We built a site for a client to advertise a new block of apartments they had built. The apartments have now all been sold so we have been asked to forward the domain to another domain until there is ...
0
votes
0answers
52 views

What could cause Nginx to write this much I/O?

I have a high-traffic webserver (up to ~50 page loads per second) running nginx, which passes HTML requests to a PHP-FPM backend and serves static assets directly. Under this load, I get a curiously ...
1
vote
0answers
41 views

How can I debug Windows server 2016 IIS “ERROR 404 - File or directory not found”

I can't get my ASP .NET web app running on my new AWS EC2 VM Windows Server 2016. Web app has been running on Azure VM Windows Server 2012 R2 for years. THE PROBLEM: I get: "ERROR 404 - File or ...
0
votes
1answer
14 views

Deny certain GET request starting with “?rest_route=” with NGINX

Is there any possibility to deny/block requests where the specific GET variable ?rest_route= is appended to the URL? I tried the following, but it's not working: # location ~ ^/?rest_route { # ...
1
vote
1answer
23 views

Browse from Internet to asp.net web app on Windows server IIS on new AWS EC2 VM gets WINDOWS 2016 SERVER “error 403 Access is denied”

THE PROBLEM: When I browse from external Internet or on the server itself my ASP.NET web app hosted on Windows Server 2016 IIS on my new AWS EC2 VM, I get "error 403 Access is denied". ATTEMPTS TO ...
0
votes
1answer
53 views

Nginx displaying failed (13: Permission denied) when trying to access new site

I am trying to set up my own web server to learn a bit more about server admin. I have decided that I want to serve each sites files from a public_html folder inside the users /home directory. I ...
0
votes
0answers
7 views

Nginx not caching css js files

I have enabled microcache + static cache + pagespeed in my nginx domain conf file. My server is behind cloudflare. When I inspect element on browser, I only see br-cache-status HIT for root path "/" ...
1
vote
1answer
27 views

Host two rails app using Puma & Nginx on domain and subdomain each

I have two rails applications and both use separate POSTGRES, nginx and puma instances on the same Ubuntu 16.04 machine. One is currently live on a domain and the other is supposed to go on a ...
-2
votes
0answers
30 views

How to forward requests from dns to web server with apache reataining the URL in the browser

I'm a newbie in this domain and I feel I did enough research was and not able to accomplish what I want. Things i've done Bough a domain called example.com on Godaddy; Created a website and hosted ...
0
votes
0answers
34 views

Ubuntu 18.04 - what could cause a web page to not be served when Apache is running ok?

The company I work for has a server running Ubuntu server 18.04. The server is connected to various cameras and performs computer vision on the images, then saves the results. When certain events ...
0
votes
1answer
59 views

Can I safely redirect all incoming HTTP traffic when new files are being uploaded via FTP?

Our website is receiving an update very soon, we've already updated all the PHP, HTML & CSS files so pretty much we just now need to upload the new files to the web server via FTP. Being that the ...
0
votes
0answers
30 views

How to capture HTTP responses with Excel file attachments?

I have an enterprise web application that allows users to download excel files generated dynamically by this application. We'd like to capture these excel files downloaded in order to get them ...
0
votes
1answer
41 views

Point Nginx reverse proxy to virtual host on different VM

I have 1 VM running Nginx to distribute incoming requests for different domains (subdomains)on the same IP to different Virtual machines. my Nginx config file for one example is very basic for now. ...
0
votes
1answer
29 views

Nginx proxy_pass to Wordpress site for site.com/blog to blog.site.com

I'm trying to get my Wordpress site to serve from example.com/blog with an Nginx web server proxy_pass to a Wordpress site (apache) hosted on another server at blog.site.com. With my current Nginx ...
0
votes
0answers
22 views

Nginx status page, writing always : 1

I'm tunning my Nginx server and have implemented microcaching over PHP-FPM which has increased my server's performance. Due to caching: 100 concurrent requests that used to utilize 100% CPU, are now ...
1
vote
1answer
85 views

Website not working if www is in URL [duplicate]

I am forcing my webserver to rewrite a none www URL to www, e.g. https://example.com to https://www.example.com, via .htaccess. RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] ...
2
votes
0answers
61 views

Puma + Nginx permission denied on files that don't exist

Getting an error in the nginx logs: [error] 6193#6193: *1 open() "/home/ubuntu/app/assets/bootstrap.min-2e2a039f4eb020ba4438b6e2ad6a83748c14257a60f68facd2d72df75c452969.css" failed (13: Permission ...
-1
votes
1answer
81 views

strange character ? added at the end of URL

I have a very very strange thing only on some websites. I have restarted the server where many websites are hosted (for maintenance reasons) and after reboot, some websites only have a ? at the end of ...
0
votes
3answers
45 views

How to setup website across multiple web servers (with load balancer)?

I am trying to use two web servers to run my website (as opposed to the one I use now). I can easily create another LEMP stack on my hosting provider (Digital Ocean) and setup a load balancer to ...
0
votes
0answers
87 views

Optimize the Nginx settings for high traffic

I am configuring my site with the Nginx 1.12 web server with PHP-FPM. Currently, my server config is 4vCPU and 8gb RAM (AWS c5.xlarge) and DB server. How can I customize the Nginx worker processes and ...
-1
votes
2answers
64 views

Can a web server be left to work alone without constant monitoring on it?

Does a web server need to be monitored all the time even after securing it and updating it, or can i leave it to work alone after doing that ??
0
votes
0answers
34 views

Why are some users forced to https and others are not?

We have intranet websites in an enterprise environment. About a month ago, we started receiving emails from users who were unable to reach pages on a specific server. There are hundreds of users for ...
0
votes
1answer
44 views

How to forward a domain to a Wamp Apache server [duplicate]

I have not been able to find a guide that resolves my issues with forwarding my domain to my wamp apache server. I've portforwarded correctly and I've made my webpage accessible through my ipv6. So ...
0
votes
1answer
90 views

NTP on a REST API

I have an application that's running a REST API and recently a requirement came up to have an NTP server associated with the application. My question is whether or not it makes sense to have an ...
0
votes
1answer
103 views

issue with server reached max_children setting, consider raising it

I have recently migrated 30 websites from my old server to new one, and now running on nginx as previously was running on apache. Everything works fine for all websites except for 1 website. I don't ...
1
vote
2answers
232 views

understand correctly pm.max_children tuning

I have done some investigations and I have found this to calculate and adjust pm.max_children value https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ but for example : ...
0
votes
0answers
363 views

send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53

Because of SSL stalping errors I had to set ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; ssl_prefer_server_ciphers on; ssl_stapling on; ...
0
votes
1answer
32 views

HTTP2 on multiple proxies

I read in Cloudflares support pages they convert the traffic from HTTP2 to HTTP/1.x when sending the requests forward to our internal proxies. We have a Cloudflare WAF service, which send the traffic ...
1
vote
0answers
65 views

Server response time

Someone should please come to my aid before this thing makes me do the unthinkable. How can I have a 16GB RAM, 6cores digital ocean droplet. Running on Wordpress with 34 plugins. Linked to Cloudflare ...
0
votes
1answer
47 views

Can one device simultaneously be a reverse proxy, load balancer, and firewall?

From my understanding you have: Reverse Proxy: A device standing between internal servers and the internet. Some goals: SSL termination, caching, obfuscation, more freedom to change internal ...
4
votes
1answer
308 views

Is there a need for WAF in static website front with REST API?

I have two webistes www.mysite.com. -->hosted on s3 , served via Cloudfront static single page App. Then I have api.mysite.com , which the front end uses. My company is using WAF solution from ...
0
votes
0answers
33 views

access apache cgi-bin from remote host

I created a Virtual Host (qgis.demo) listening on port 80 on my server virtual machine (an amazon ec2 instance). It serves a CGI-BIN app (qgis_mapserv.fcgi). I modified my /etc/hosts to include 127.0....
-1
votes
0answers
74 views

Bitwarden docker not reachable

I have a Bitwarden docker running, but the container is somehow not reachable. If I try to access https://my.domain.tld:9443/ Chrome shows "ERR_CONNECTION_CLOSED". The containers are up and running ...
0
votes
0answers
11 views

Prevent navigation to subfolder, but still leave it available for subdomain

So I have a domain that also has several subdomains on it. I have built the directory structure like this: mydomain.appRootFolderThatContainsAllTheAppAssets subfolderThatPointsToASubdomain ...
0
votes
1answer
23 views

Can't access phpMyAdmin - I am getting redirected to a vhost

My phpMyAdmin is located at /srv/www/htdocs/phpMyAdmin/. The IP of the webserver is 192.168.40.40 If I try to access phpMyAdmin like this: http://192.168.40.40/phpMyAdmin then I get redirected to a ...
-1
votes
0answers
62 views

Debian 9 / Apache 2.4 - Restricting access to some files in a Virtual Host subdomain unless the originating IP is on the local network

I've a problem that has been costing me hours of time, it's probably something simple but my knowledge of Apache is a bit limited it would appear. I'm starting to feel like I'm down a rabbit hole so ...
0
votes
1answer
35 views

serving a WordPress website downloaded from Chrome?

I used Chrome to download a website (using "Menu -> More tools -> Save page as ...".); I want to ftp the html file (renamed to index.html) and the files folder into a static http server and have a ...
0
votes
0answers
43 views

Why do I have intermittent access to sql server from my application server?

I was successfully able to launch a DotNetNuke test site last week. This week when I came into work I got an error that read Unable to connect to database. After a little digging I do a create a ...
0
votes
1answer
24 views

Distinguishing which request was handled by which server

I've got single virtual machine that runs multiple http servers. Those servers are totally different as they do different things, they use different technologies (some are .NET, others are python, ...
0
votes
0answers
125 views

apache2.4 on Ubuntu 18.04 Failed to acquire SSL session cache lock

please help to solve this issue. This problem occurs after 1-3 days of apache start. After restarting apache, the error / warning does not occur again, but after some time or several days, the error ...
-4
votes
2answers
76 views

How do I prevent access on the web to a txt file on my server? i want it to still work, as its for a wizard. But i dont want people to access my code

I'm wondering if anyone can help me please. I have some text files on my server, which run with a Wizard. The issue I am having is that I'm unable to hide the text files on the web browser. I've ...
1
vote
1answer
32 views

How to configure multiple nested subdirectories in Nginx using wildcards?

👋 Sorry if this was asked before. I've searched, but couldn't find anything close to what I'm trying to accomplish and I would appreciate any indication that could get me closer to solving this. 😊 ...
-1
votes
0answers
9 views

Should I only use Gunicorn for my Django app? [duplicate]

I have a django project that only has APIs which the clients will use and no static contents. I wanted to know if it is good practice to deploy my project using only Gunicorn with some process ...
0
votes
1answer
89 views

Nginx performance drops significantly when I enable https (slower 30 times than http only) & 12 times slower than Apache https

I have an Angular website with static assets of around 1.5 mb and gzipped it is around 400 kb, I have nginx as my webserver & reverse proxy to the API server, when I test nginx with Apache ...
0
votes
0answers
12 views

How I can add Rewrite rule in htaccess only for home page?

I have a problem with apache. My site has these rules now: RewriteCond %{HTTP_ACCEPT} text/html [NC] RewriteCond %{HTTP_HOST} ^mysqite\.com [NC] RewriteRule .* path/to/html/my.html [L] I need ...
4
votes
1answer
378 views

Why is nginx default_server masking a better match?

I got my local nginx serve 3 sites with the respective configurations below. They worked well that way in my local LAN (see below also for the dnsmasq config) when requested with A or A.domain. Now I ...
0
votes
1answer
50 views

DNS/Web Hosting to a private network setup

I've tried to find a lot of answers to my question, but I am quite a bit confused to some of it and now I am here to seek further advice. The setup: We have a hosting and our domain will be ...