Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

Filter by
Sorted by
Tagged with
0
votes
0answers
40 views

apache + fastcgi - how to run processes for another user

I move legacy python website that works with Apache + FastCGI to VPS from shared hosting - so need to configure everything myself. All website scripts/static/etc are stored for user 'user1' and I've ...
0
votes
1answer
239 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 ...
0
votes
1answer
230 views

How to properly setup SSL with Apache2 and multiple Docker containers?

I intend to create the following setup with a single server droplet: What I want to achieve is to only setup SSL / HTTPS once for my Apache2 web server using a wildcard certificate as depicted above. ...
0
votes
0answers
80 views

Only able to access NAS server remotely via VPN

I recently received a DS720+ NAS and have been trying to set it up remotely on my domain.  I can successfully access all my services in HTTPS with no issues locally (through the domain, not static IP)....
0
votes
0answers
306 views

Haproxy is returning 503 Service Unavaliable after benchmarking

Thank you for youre time for helping me foremost and reading this. I have been encountering an issue with haproxy where i am recieving: 503 service unavaliable error. My topology is consisting of 3 ...
1
vote
1answer
339 views

Is it possible to share files through Apache WebDAV?

Apache WebDAV allows to setup a WebDAV server without the PHP overhead which is usualy produced through Nextcloud/Owncloud. But is it also able to: share a file / folder with other authed users? ...
3
votes
1answer
857 views

Rewrite rule with QUERY_STRING don't work

On Apache server, i need to rewrite mydomain.com/something/?p=value to mydomain.com/something/?page=value I tried: RewriteEngine On RewriteCond %{QUERY_STRING} p=(.*) RewriteRule ^(.*)/p=$ $1?page=%{...
1
vote
1answer
43 views

How to add multiple path on same port VirtualHost

I want to add multiple paths like "localhost:8080/phpmyadmin" and "localhost:8080/index.php" but it doesn't want to work I create a phpmyadmin.conf in conf-availables with # ...
0
votes
2answers
235 views

webserver debugging ERROR: certificate common name 'myserver' doesn't match requested host name

I am performing a wget and recieve the response : ERROR: certificate common name ‘mydomain’ doesn't match requested host name Which I understand and can rectify. However is the above message logged ...
0
votes
1answer
158 views

Apache, mod-wsgi: Any URL is served by project, ServerName is ignored

I am setting up a Django project and Apache on Ubuntu 20. The below setup correctly displays the Django project, however ANY URL that points to the server's IP address is served this project. I ...
0
votes
0answers
330 views

Unifi Reverse Proxy

Is there a way to put the following ports behind a reverse proxy using apache 2? UDP 3478 Port used for STUN. TCP 8080 Port used for device and controller communication. TCP 8443 Port ...
0
votes
0answers
18 views

How to block all traffic to my server that are connecting using my IP instead of my domain name? [duplicate]

I have fedora server, i want any connection to use my server domain name or otherwise be blocked.. I don't mind if i use iptables (or csf) or if not then through apache configs.
0
votes
0answers
24 views

File upload using Flash to a JSP servlet extremely slow compared to cURL

(Sorry if it's not the right place to ask -- feel free to redirect me to the proper Stack if needed) We are running a legacy web application which is developed using Flash, and which sends requests to ...
0
votes
0answers
23 views

Apache Error - server reached MaxClients setting,

In my java web application fronted with apache and we have a resin servlet container. My application was serving almost huge traffic. In recent days, our application started to encounter a sudden ...
0
votes
0answers
395 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 ...
0
votes
0answers
183 views

PHP .htaccess issue when use https always with cross-origin allow

I have created a .htaccess file for creating some rules. Redirect user if not using https or www Allow cross-origin for one another domain with that all subdomain Disable indexes My primary domain : ...
1
vote
1answer
230 views

How does Apache mod_rewrite work to restrict by IP

I would like to accept only certain IP(s) for a few weeks. Only accepted IP could load this -> www.example.com/login not the others. Apache 2.2 is used. The code in mod_rewrite as below : ...
0
votes
0answers
829 views

Apache Error log format: how to find current format?

I am building a log parser in PHP and have trouble with apache error log format. With access log, it's easy to see the default LogFormat in apache config file then check in my virtual hosts for any ...
0
votes
1answer
225 views

Please help- I can't figure out whats taking down my server every day

Every day my server goes down - sometimes 2 or 3 times a day. Between 2-15 minutes I was pretty sure it was due to a type of distributed DDOS or perhaps brute force but using Cloudflare doesn't seem ...
0
votes
0answers
25 views

Loading resources from 1 location for multiple sites (more or less resource intensive)?

Let's say I have 3 sites that access the same resources. The same images, JS/CSS files. If I make a "CDN" for these resources on the same server (different addon domain + Cloudflare), will ...
0
votes
1answer
469 views

Unable to SSH to GCE instance

Unable to SSH to GCE instance Till yesterday my SSH connection via Filezilla was working fine, it was just while transfering some files to server my internet connection broke twice. then again i tried ...
1
vote
0answers
1k views

Socket.io error "Failed to load resource: net::ERR_CONNECTION_REFUSED" in Azure linux server

When opening this web page I get the following errors in the debug console: localhost:5005/socket.io/?EIO=3&transport=polling&t=NJKuQEf:1 Failed to load resource: net::ERR_CONNECTION_REFUSED ...
12
votes
4answers
4k views

How can I redirect an entire site to a single page?

I'm in the process of shutting down a site, and have replaced the old site with a single "nobody home" page at the root level of the site. Now I need to set up some redirection, so that any ...
0
votes
0answers
40 views

Apache Tomcat rewriting url matching specific pattern

I've got a question: An application and the specific backend gets packed within the same maven module with the context /test/. The REST-Apis for the backend are located at /test/api/*, but all other ...
0
votes
1answer
53 views

How to get to modwsgi 4+ on Centos7

On Centos7, yum pulls in mod_wsgi 3.4 using a yum install. I'm having some problems and multiple resources I have looked at regard this version as ancient and ask the users to upgrade to 4+. I'm not ...
0
votes
0answers
27 views

infected this directory public_html/.well-known/acme-challenge/index.php [duplicate]

My hosting service company said your site got pishing attack public_html/.well-known/acme-challenge/index.php' Known exploit = [Fingerprint Match] [PHP Obfuscated Include Exploit [P1693]] My concerned ...
0
votes
1answer
276 views

Can't get Varnish to work on HTTPS

I have setup Varnish alongside with Apache, I'm not using Hitch or Pound just a simple proxy configuration with Apache mods. Apache listens on 8080 My Varnish configs: # Configuration file for varnish ...
4
votes
2answers
2k views

How to bundle intermediate certs into one file

I manage an apache web server for a government site. The SSL cert will expired in a few weeks so they sent me a zip file with 3 intermediate certs and the ssl certificate (I have the private key from ...
0
votes
1answer
276 views

Apache Link to PHP run application/x-httpd-php *

For example: I create a Link to PHP script file to file.php <?php echo 'exaple'; ?>. When I open file online I get the PHP script not exaple. If I open file.php I get exaple. I have tried if ....
0
votes
1answer
29 views

How do I point other websites to subdomains on my site without redirecting users?

Apologies in advance as I'm trying to do something and I don't know what it's called or the best way to describe it, but here's my best attempt: I have a domain, let's say aaa.com, and that domain has ...
0
votes
2answers
49 views

Website fail over using 2 IP address

We have a moodle webserver with 2 Public IPs (different ISPs). Is it possible to make a mechanism, to access the website with other IP, if the first ISP connections fail? We have added 2 public IPs in ...
0
votes
0answers
294 views

When too many concurrent connection to MySQL, all Apache-PHP site unable connect to DB

I'm using RDS from amazon, and tuned the MySQL config to the max. However, all the site will be stop connecting to the MySQL when the number of connection reached a certain numbers of activities. It's ...
1
vote
0answers
141 views

Getting issue in running NGINX

I have an AWS Lightsail instance and running NGINX and apache on different ports. (Apache on 8080 and Nginx on 80). It was running fine but from the morning the Nginx has stopped working and on ...
1
vote
0answers
237 views

EC2 - ERR_CONNECTION_TIMED_OUT

I have a ec2 free tier instance running linux, apache web server and nodejs app. I have configured security group and it worked ok so far. But now i can not access server through DOMAIN or IP with ...
0
votes
1answer
36 views

A proxy with a fixed URL that alters certain file types?

I need to make a mirrored website with a slightly different info. spawning up a new server for each site is too much work, and takes a lot of effort to update. most of the content should be intact, ...
0
votes
0answers
70 views

OSS Server Written in Javascript, Linux Based Needs MIME Configuration

Scenario: There is a popular OSS application named Potree, hosted in GitHub. I am getting minimum support from its author, a very talented but busy guy who does not know much Linux or Apache. This is ...
0
votes
1answer
87 views

What Prevents a Server Owned by a Non-Priviledged User to be Reached by Apache?

There is a popular Open Source application written in Javascript Node.js that listens to port localhost:1234 under my regular, non privileged account. When connecting from localhost everything works ...
0
votes
0answers
16 views

httpd don't find image with special characters

I have a wordpress site and when I upload image with french name like this (sécurité) my server don't find the image and the brower return my a 404 erreur. But the image is on the server . I try a lot ...
1
vote
0answers
36 views

SetEnvIfNoCase match part of url not working / Secure special page with an authentication

I'm currently trying to secure a shop category in WooCommerce with a basic authentication including all products in this shop. For that I've found this code on Stackoverflow for my .htaccess file: ...
0
votes
0answers
24 views

Summarize first column same field

I have some datas with URL's and used network data. I made a custom file with these data's and i stuck last one step. What i have now: sevroland.api.url.com 488 www.logstach.url.com 42725 ...
0
votes
0answers
52 views

Bots causing server to crash - getting error "server seems busy" in apache logs - need to update prefork settings?

So after my website ( running on a Rackspace 2GB ram centos 7 instance) went down twice this week I went through the logs and seems the culprit are bots ( search engine and others.. ) The bots seem ...
0
votes
1answer
686 views

Move nextcloud to sub url but put a public folder at root (with nextcloud + nginx + nginx-docker-gen all in docker)

I have nextcloud running on https://cloud.museumsstrasse.at but since we will use nextcloud primarily for opening data to the public I would like that this nextcloud root url leads to a public ...
0
votes
0answers
75 views

How to correctly tune Apache and mod_wsgi

I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak. Right now I have the following configuration: StartServers 3 ServerLimit 15 MinSpareThreads ...
1
vote
1answer
603 views

php geoip not working on ubuntu 18.04 [closed]

I can't get the GeoIP PHP extension working on Ubuntu 18.04 with PHP 7.2 i have intalled it by the cli: sudo apt-get install -y php7.2-geoip Its enabled in system but not working: php7.2 -i | grep ...
0
votes
1answer
1k views

Why returns apache a http 500 but does not log any errors?

On a 12 year old (web) server is still 1 old (custom) PHP application hosted. We want to shutdown this server and remove it from the rack. Unfortunately we still need the application, is not actively ...
1
vote
2answers
445 views

For SPA, rewrite requests to root index.html only after checking for index.html in sub directory

I have an Apache site with a mix of ReactJS SPA (dynamic) routing and static HTML files. It's common to see rewrite strategies that direct all requests on non-existing files to /index.html at the root ...
0
votes
0answers
224 views

.htaccess remove string at the end of url

Suppose I have urls like these: /toys/id-2005200520056-what-ever-toy-name I would like to only keep the id part: /toys/id-2005200520056 The id always has 13 digits. This is what I tried but it's not ...
0
votes
1answer
86 views

is ProxyPass good practice

I wonder if mod_proxy is a good practice because i have an apache http server which delvier my application ressources html/css/jss and for specific url I use ProxyPass to external IP. By example url ...
0
votes
1answer
67 views

Restarting Apache with PHP

How would I go about restarting Apache with a PHP script while keeping correct security measures on a production server? This is because restarting Apache requires the use of sudo or root privileges, ...
0
votes
1answer
72 views

How to add logging to Apache If/Else?

No matter what, Apache is always going to the else block. I've looked at this one, but this one is using a user-defined environment variable. I'm trying to use an apache header to do some dynamic ...