Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

Can I use same subdomain to serve both ColudFront, S3 and Apache?

I'm trying to setting up a application on S3 and CloudFront and the frontend application is using Flutter. Frontend I have managed to deployed S3 and CloudFront successfully. Let's say the domain dev....
502_Geek's user avatar
  • 111
0 votes
0 answers
43 views

Convert auth config from apache http server 2.2 to apache 2.4

I have the following apache 2.2 configuration and need to transform it to apache 2.4. <Location /> Order Deny,Allow Deny From Env=TEST Allow From Env=LOCAL Allow ...
trikelef's user avatar
  • 528
0 votes
1 answer
113 views

Apache LogFormat: what does %f mean?

I have checked the apache logformat from - https://httpd.apache.org/docs/2.4/mod/mod_log_config.html I am not able to understand what does "%f" parameter mean in apache log format. The ...
Yogesh Tembe's user avatar
1 vote
0 answers
93 views

Apache2: mod_ratelimit only allowing half the speed

I'm trying to limit the file download speed in a directory I've got the following .htaccess <IfModule ratelimit_module> SetOutputFilter RATE_LIMIT SetEnv rate-limit 4096 </IfModule>...
DrDino's user avatar
  • 11
0 votes
1 answer
1k views

modsecurity wont start with an apache server

I have a Debian server where apache2 is running. I want to use modsecurity for throttling. apache2 info $ apache2ctl -v Server version: Apache/2.4.29 (Debian) Server built: 2018-01-14T11:01:58 I ...
Hussain Nagri's user avatar
1 vote
1 answer
1k views

No space left on device: AH00023: Couldn't create the ssl-cache mutex

I saw another similar questions here but none had a answer that solved this problem. From time to time, around 3am, my Apache server freezes and i see those errors in my logs... (28) No space left on ...
Raul Chiarella's user avatar
3 votes
1 answer
234 views

Why is apache -X stuck in a pselec6() NULL loop?

version 2.4 pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=100000000}, NULL) = 0 (Timeout) Repeats forever using strace. Only one httpd process enabled.
queryman2000's user avatar
0 votes
1 answer
172 views

Apache2 server getting so many unusal requests again and again

I am trying to configure the WordPress and NodeJS website together and I am using an apache2 server and ubuntu(20.04) virtual machine. I configured both applications successfully on my machine but ...
Piyush Mittal's user avatar
0 votes
1 answer
110 views

Why do we need Apache Access Control when we have ownership, permission and firewall

Why do we need Apache Access Control like Require user <name or UID> Not require user <name or UID> Require group <name or GID> Not require group <name or GID> Require ip <...
Ahmad Ismail's user avatar
0 votes
1 answer
206 views

example.com to https://www.example.com | Apache

So I want to redirect example.com to https://www.example.com. I already have ssl with certbot but I want to change my redirect config in /etc/apache2/sites-available/example.conf. Certbot already ...
Thamognya Kodi's user avatar
0 votes
1 answer
242 views

Installing Apache in different name and different port

If Linux server already has Apache web server running as httpd on port 80 to serve hosted website. and If I want to create a control panel to manage the server so I need to install a web server to ...
Mohammed Shannaq's user avatar
0 votes
0 answers
224 views

Varnish probe thinks web is down if he gets 103 http code

This is my first post in this forum and I will say that I am sorry for all the mistakes that I will make in this post. This is a desperate call for help as I was not able to find any kind of ...
Micu.s Electrobang's user avatar
-2 votes
1 answer
49 views

How to configure two addresses to access other frontends/port [duplicate]

How do I configure two addresses to access other frontends / different ports, for example: Address Mapping to www.mysite.com/config (nodejs) localhost:3000 www.mysite.com/client (django) localhost:...
trapp's user avatar
  • 99
0 votes
2 answers
59 views

how to do 301 redirects from old site to new

I have a website which is on Wordpress www.old.example.com and on its own IP/Server 10.1.1.1 It has various pages which are ranked on google which I'd like to preserve. I have a new website www.new....
Z D's user avatar
  • 11
-1 votes
1 answer
64 views

Do I need 2 virtual hosts for both www.example.com and just example.com?

I have 2 questions - does it matter if the ServerName in Apache's conf file starts with www? Also if I have the following virtual host: <VirtualHost *:80> ServerName www.example.com ...
Onyx's user avatar
  • 101
1 vote
2 answers
559 views

Restrict Direct IP Access To Website Without Affecting Other Sites

I have several sites hosted on my server. If you directly type in the IP address to the server it will take you to one of the sites, I wanted to restrict this behaviour so I used the following fix: &...
Z D's user avatar
  • 11
1 vote
0 answers
346 views

Reverse DNS and Apache virtual host

In short: Apache's VirtualHost doesn't work as intended when the reverse DNS is enabled. I'm managing a web service on a single CentOS server. It has a single IP address and multiple subdomains, and ...
mmrn's user avatar
  • 121
0 votes
1 answer
785 views

Apache Site Goes To Wrong Page If I Manually Enter HTTPS:// in the URL

If I type in example.com into the URL it redirects to https://www.example.com which is great, same with typing http://example.com I get the correct redirect to https://www.example.com. However if I ...
Z D's user avatar
  • 11
0 votes
2 answers
134 views

Mod-rewrite Port in Apache2

I'm playing with home assistant (HA) in docker on Ubuntu 20.04. HA is hosted on port 8123. HA does not support subpaths, ie. it is hosted at MYDOMAIN.duckdns.org:8123 rather than MYDOMAIN.duckdns.org:...
EncryptedWatermelon's user avatar
1 vote
0 answers
311 views

Apache2 : How to remove port from URL?

I have the following apache configuration file for a reverse proxy : <VirtualHost *:80> ServerName example.com RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) ...
Thomas Carlton's user avatar
1 vote
1 answer
2k views

Convert Apache2 configuration to nginx configuration

I have RHEL 6 with apache/httpd (v2.2) configured to handle two different path of WordPress: FOO path: /var/www/html/FOO/ BAR path: /var/www/html/BAR/ We plan to move to a new machine running RHEL 7 ...
Mohamed ElHarery's user avatar
0 votes
0 answers
1k views

How To: Change Apache Default Directory | Multiple Domains

Problem: I am working on a production server hosting multiple domains and I am unable to get each domain's index.html to load. The default Apache page is loading instead. Example, Apache is not ...
mister mcdoogle's user avatar
1 vote
0 answers
159 views

Is it possible to configure Apache to return a blank reason phrase instead of "OK" for an HTTP 200 response?

Instead of this: HTTP/1.1 200 OK I want the server to return this to the client: HTTP/1.1 200 Both responses are RFC-compliant. This is for doing regression testing on a broken HTTP client. Running ...
Google Fail's user avatar
2 votes
1 answer
188 views

Apache incorrectly resolves requests with paths starting with /index.php/

In reviewing access logs I've noticed the below automated vulnerability scan for which Apache is returning a 200 status: POST /index.php/api/Uploadify/preview HTTP/1.1 There's isn't a rewrite rule ...
scottlimmer's user avatar
0 votes
1 answer
137 views

Apache seems to redirect to domain name ever when not running

I'll preface this by saying I don't have a lot of experience with Apache. But currently I am running a Node process that's listening on port 8080. However, when I access that port via 'ipaddress:8080'...
Anthony's user avatar
  • 211
0 votes
1 answer
569 views

Apache Default Page Showing When HTTPS Using Django Project

I have been trying for the past 1 week to get this to work but it just does not seem to be working at all. Please help, here are the files for the default-ssl and the 001-default, the website is ...
Nikunj Dutt's user avatar
0 votes
2 answers
3k views

How to restart apache2 server

I'm unable to run sudo service apache2 restart on my sever. Inorder to troubleshoot this when I execute sudo systemctl status apache2.service and I get the following log. Loaded: loaded (/lib/...
Rasik's user avatar
  • 109
0 votes
0 answers
852 views

Unable to restart my apache2 server Error : order takes only one argument allow deny deny allow' or 'mutual-failure'

whenever I try to restart my server I get the following error. order takes only one argument allow deny deny allow' or 'mutual-failure' My 000-default.config looks like this <Directory /var/www/...
Bhanu's user avatar
  • 101
8 votes
3 answers
27k views

"No space left on device: AH00023: Couldn't create the mpm-accept mutex" when restarting httpd

My server sometimes gets filled up with connections in apache stuck in a "Sending Reply" state, requiring me to restart apache. Most of the time this works, but sometimes I will get this ...
user548654's user avatar
0 votes
1 answer
5k views

Apache: proxypass docker container to subdomain

The subdomain sub.example.com is hosted on AWS EC2, Amazon linux 2 OS based on centos. It runs php7 lampp stack. webroot is /var/www/html. We don't have access to the domain, example.com, it's with ...
Lynob's user avatar
  • 251
0 votes
1 answer
4k views

Apache 2.4 Rewrite rule based on Header value

trying to do http to https based on header value of the request but failing some how.can some one help me here. request is if a header value is xyz and it is equal to Y then serve http pages,for all ...
Rajesh's user avatar
  • 1
0 votes
0 answers
981 views

Apache multiple virtual hosts same ServerName

I want to use the same exact ServerName, but load the first virtualhost block that works. Here's how it should work: If there is a wordpress folder in /var/www load that. Otherwise, load index.html ...
Justin Breen's user avatar
1 vote
1 answer
816 views

Apache mod_expires not setting correct expires datetime

I'm having a problem with mod_expires. I simply set have a default expires of 1 days and then I set the expires by type (for images and audio). So for example i set ExpiresByType image/jpeg "access ...
Isky's user avatar
  • 121
0 votes
0 answers
494 views

Virtual Host points to wrong directory after changing it on Ubuntu with Apache

I created a virtual host for a domain abc.com to point to the directory /var/www/abc. So in my sites-enabled I had this: <VirtualHost *:80> ServerAdmin [email protected] ServerName abc....
almo's user avatar
  • 111
3 votes
1 answer
2k views

Block access to all php files in subdirectory

I need to block access to all .php files in a subdirectory of my web root. I know that I could create a .htaccess in this subdirectory and use the following: <FilesMatch "\.(?i:php)$"> <...
Phill Healey's user avatar
0 votes
1 answer
252 views

php apache_note with mpm_event

I'm wanting to switch to mpm_event to be able to serve a higher rate of requests. My initial testing showed that the server can serve a higher rate of requests when using mpm event. The server is ...
yossarian2004's user avatar
0 votes
1 answer
38 views

Wrong directory on virtualhost [duplicate]

I'm trying to have 3 different domains on my VPS, those are pd.lsgob.us intranet.lsgob.us lsgob.us I have configured them but for some reason I'm getting redirected to the same index.html that the ...
Quinn Humpreys's user avatar
0 votes
0 answers
16 views

Is there anything I can add to an Apache server configuration file that will change the user of the PHP and apache processes?

On my nginx server I can tell who is using up the resources. On my Apache server they all run as www-data. Is there anything that I can add to my apache site.conf files that will make it show the site ...
Frank Barcenas's user avatar
0 votes
1 answer
269 views

How to set the DirectoryIndex on a tomcat Apache server to serve website?

I am using an Apache Tomcat server, that I want to host my website on. I have copied the contents of my website to /opt/bitnami/apache-tomcat/webapps/ROOT, however when I go to the homepage, I am ...
fuzzi's user avatar
  • 115
2 votes
2 answers
470 views

How can I get Apache to log all requests from the same visit with the same ID?

Why? I am currently purchasing traffic from Adwords to my e-commerce site. On Adwords, I can see how many visits I've purchased and I am trying to verify the number of visits to my site by analyzing ...
Tinker's user avatar
  • 171
4 votes
1 answer
14k views

How to debug curl? gnutls_handshake failed -unexpected TLS packet (OpenSSL)

How can I debug curl error further when Apache error.log is not showing any? (35) gnutls_handshake() failed: An unexpected TLS packet was received. curl -v https://example.com * Rebuilt URL to: ...
Markus's user avatar
  • 171
0 votes
3 answers
6k views

Apache never wants to run my python scripts

Environment: Ubuntu 16, Apache 2.4 The last three times I tried to setup Apache to serve up Python I run into the same problem: Apache wants to let me download the script instead of running it and ...
user58446's user avatar
  • 141
2 votes
2 answers
2k views

.htaccess has no effect on subdirectory

I need to protect my whole website (It's just for development at the moment) with a password. So I created a .htaccess and a .htpassword file. The .htaccess contains AuthUserFile /my/absolute/path/....
Peni's user avatar
  • 121
3 votes
2 answers
5k views

Apache ProxyPass to Tomcat - how to remove context path from URL?

I have Apache conf: <IfModule mod_ssl.c> <VirtualHost *:443> ServerName project.example.com ServerAlias ci ProxyRequests Off <Proxy *> Order deny,allow ...
Justas's user avatar
  • 221
0 votes
2 answers
499 views

Is it mandatory to name folder same as domain name for virtual host?

I'm learning how to create virtual hosts on apache2. I have Ubuntu 16.04 operating system. I also have WSL (Ubuntu 16.04) in Windows 10. Now, here's what I observed when I made a virtual host on ...
Vikas's user avatar
  • 97
0 votes
1 answer
1k views

Could be "Directory index forbidden by Options directive" the cause for "Request exceeded the limit of 10 internal redirects"?

I am trying to setup a project in my local environment so I am able to work on it. PHP 5.3.3 is being used and Apache 2.2.15 with CodeIgniter 2.3.1 (PHP and CI version are not relevant here but is ...
ReynierPM's user avatar
  • 722
0 votes
2 answers
4k views

Apache httpd serve a 200 response with static resource if requested file is not found

I am looking for a way to configure httpd server to respond with an image if requested file is not found. I know it can be simply done by: ErrorDocument 404 "/static/thumbnails/404.png" This one ...
Maciej Dobrowolski's user avatar
0 votes
1 answer
1k views

Apache HTTP Fallback if SSL Handshake fails

I have a very specific use case. I want to check, using an Apache, if a user's browser is capable of using modern CipherSuites. The Apache ist called with https and should try to establish a SSL ...
globus243's user avatar
  • 139
1 vote
1 answer
3k views

Apache won't redirect HTTP to HTTPS

When I enter my website's non-SSL URL "cms00.example.com" into my browser, it won't redirect to https://cms00.example.com. If I enter the HTTP address, I can see the site and if I enter the HTTPS ...
Jim's user avatar
  • 340
0 votes
1 answer
1k views

htaccess .zip url rewrite from /*.zip to /key/*.zip [duplicate]

Currently I have some zip files stored in the http root of my php/apache web server. Currently I can access the files using this: http://example.com/filename.zip However, I want to "protect" the ...
dikonubiga's user avatar