Stack Exchange Network

Stack Exchange network consists of 175 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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [apache-httpd]

Use this tag for questions related to the Apache HTTP server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Non-apache web server-related questions should use the tag: webserver.

0
votes
0answers
6 views

Blocking specfix URIs with Apache redirect rules

I want to block URL with below pattern 172.31.X.X "172.31.X.X" - - [19/Apr/2019:06:33:56 +1000] "POST /wp-cron.php?doing_wp_cron=1555619633.5413479804992675781250 HTTP/1.1" 302 274 "http://www....
0
votes
0answers
5 views

python cgi file is inaccessible by apache2

I have setup a .conf file to allow the use of python cgi by adding <Directory "/home/main/code"> Options +ExecCGI AddHandler cgi-script .py </Directory> and I made the python ...
-1
votes
1answer
17 views

allowing and banning cipher-suites apache2.2

There is a list of banned and recommended cipher-suites that I need to add to ssl.conf file, and I'm facing some problem when trying to configure it: I need to ban all ECDH* and allow 15 cipher-...
-1
votes
0answers
20 views

How to configure apache webserver to run php? [on hold]

I am administering an apache webserver: Apache/2.2.22 (Debian) It's essentially acting as a monitor program for some industrial processes that might get 4 or 5 views a day. It has an httpd root ...
2
votes
1answer
42 views

How to have memory/cpu limits only for forked children and not for the parent process?

Is there a way to have limits for (let's say) apache2, that limits each forked child worker process to use max X memory, and not the entire process tree (apache2 and all of its forked children) to max ...
0
votes
0answers
13 views

Outgoing HTTPS proxy using apache

I have an HTTP/HTTPS web server running on Apache 2.2.22, and I would like this machine to act as a proxy server as well. So far I have tried to modify the proxy.conf file as follows: ProxyRequests ...
-1
votes
0answers
29 views

online & offline web server [on hold]

Is it possible to do work on offline mode and see stats and done work by workers on online mode? I ask this because if connection is lost in factory, so they can still insert data into website ...
0
votes
1answer
29 views

How to setup htdocs permissions for development VM?

I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve ...
0
votes
1answer
42 views

Is plain text in index.html secure?

So I would like to know if anybody can access my LAMP if I just write some plaintext in the index.html file, so that when somebody accesses my_ip:port they will be greeted to the text in that file. I ...
-2
votes
1answer
26 views

Problem with installing php7.1-gd

I am running on debian9 and using ppa:ondrej/php repository, but I am unable to install php7.1. nor install missing dependecies. When I try to install it with apt install php7.1-gd I've got this error....
0
votes
1answer
43 views

Website cannot write to files or create directories

I've been trying to install TeemIP for about 6+ months now and I've never been able to figure out this issue on Centos7. The error I get is the following: The directory '/var/www/teemip/public_html/...
0
votes
0answers
7 views

Setting up reverse proxies for websites cloned to local machine

I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts: <VirtualHost *:8080> ServerName ...
0
votes
0answers
20 views

Monitor Apache Selectively

I am working to parse apache logs in Common Format in realtime so that I monitor them while I work. "tail -F /var/log/apache2/access.log" works but provides more than I need. "awk '{print $1 " " $2 " "...
0
votes
1answer
35 views

Local DNS - Redirect subdomains to different virtual hosts in apache2

I've set up three virtual hosts in apache 2.4 with the following entrys: <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/ ErrorLog ${...
0
votes
1answer
20 views

Multiple Web Servers over a Single IP, Using Apache as a Reverse Proxy

How can I run multiple servers over a single IP, Using apache reverse proxy. Basically I want to configure an apache proxy for atlassian products like follows: https://jira.domain.com ProxyPass to ...
0
votes
1answer
18 views

Redirecting a domain without an SSL to one that has one

Our company has recently changed the domain name for one of our produce websites, and wants all traffic from the old to be redirected to the new. Right now that comes up with a privacy error as the ...
1
vote
1answer
31 views

How to fix syntax error for [not allowed here]?

I have set 2 headers below for converting SAML values returning from Siteminder to HTTP header. MellonSetEnvNoPrefix YYY_ID yyy MellonSetEnvNoPrefix XXX_ROLE xxx I got the error below after starting ...
1
vote
0answers
27 views

How to configure httpd for multiple websites each binded to a different port

I am running httpd version 2.4.6 (on CentOS 7) that is hosting 2 sites, zabbix web client and an internal site that i will refer as "intra_site". Until now, both of them used to run on port 80. Now, ...
0
votes
1answer
10 views

Apache load balancer always redirect

I set the LoadBalancer in Apache 2.4.6 (CentOS), it works well except one thing. When the user open the alias of Apache server, it anytime redirect the user to another server when click somewhere on ...
0
votes
1answer
57 views

GitLab with relative URL on Apache (CentOS web server)

I have a CentOS 7 server with an existing website (say mywebsite.com) hosted with Apache. I would like GitLab to be managed by Apache and not nginx, and with a realtive url with respect to the one of ...
2
votes
2answers
21 views

Apache 2.4 // FilesMatch

I wonder why test.html is Forbidden (as expected) but wp-login.php is available. I tried both FilesMatch and Files. They have similar "chown" and "chmod". I've read official Apache 2.4 docs. I googled ...
2
votes
2answers
35 views

Stopped process vs running service?

I stopped httpd processes on a centos 7.6 machine using kill -STOP command and the processes show up as stopped in top output. I tried to telnet the webserver's IP on port 80 and was able to do so ...
0
votes
0answers
29 views

Configure virtual host for custom directory

I have a web application installed in '/var' in a folder called 'myapp' in a CentOs 6 vps, and i have a sub-domain that points to the server IP, and i need that sub-domain to point to that '/var/myapp'...
0
votes
0answers
14 views

Varnish - Disable cache by default and enable only for specified sites

I am here with question which I was not able to google up. I need solution for that I want to have varnish cache disabled for all sites, and enable caching one by one for my domains. Why this ...
2
votes
1answer
46 views

Varnish - multiple backends for one site

Is possible with Varnish configure multiple backends for one site? For example I have high avalibility site with multiple backends. For example I have site www.goodies.com which is running on php 5.6....
-2
votes
0answers
13 views

Why apache don't recognize that path /var/www/html/domain.com/main_site/public?

Why apache don't recognize that path, but hes can recognize that path: /var/www/html/domain.com/public/ What's the point? It's always give me an 403 forbidden error or error 500, even IF all config ...
0
votes
1answer
76 views

Running Multiple Versions of PHP Using Apache on Gentoo

I have a Gentoo Linux web server that serves a few PHP-based web applications using Apache. Most of the applications will run on the latest version of PHP (i.e. 7.2); however, one application needs to ...
0
votes
1answer
18 views

host header url for linux web server

I am running a webpage on Apache at my vps(Debian) with the url of http://vps.foo.com/stuff.html. How can I change it so that the url is only stuff.foo.com? I use to do this in IIS many years ago, not ...
0
votes
1answer
68 views

Why is there Russian traffic in my web server's log files?

My family's business runs a website with GoDaddy for promotional purposes. I checked the logs the other day and found some really strange traffic that I don't exactly understand: 188.234.248.201 - - [...
2
votes
1answer
108 views

apt: Install latest stable php and all its extensions

The following question is a follow up to this question. Each time I create a Debian server environment to host my own websites on I install latest yet stable php with different extensions (...
1
vote
2answers
51 views

apt: Install all php packages whatsoever

I'm quite fed up with tracking packages of PHP extensions that are needed for some GUIs like PHPMyAdmin or some CMSs like Drupal. For example, I once did: apt upgrade php-{cli,curl,mbstring,mcrypt,...
2
votes
1answer
71 views

How can install mod_evasive or mod_security with httpd24

I'm trying to install mod_evasive and mod_security vainly, with httpd24 under Cenots 6.10. I have tried this solution : https://github.com/shivaas/mod_evasive, downloaded : mod_evasive24.c $...
0
votes
1answer
14 views

Adding .htaccess to Wordpress results in 500 Internal Server Error

I am moving a Wordpress site to a new dedicated host. I have managed to move the assets and import the wordpress database. I update the wp_options to the tempory domain name (until I'm ready to make ...
0
votes
0answers
21 views

Apache, Tomcat : Load balancing not working with 2nd server

I am working on load balancing 2 servers which have different domain names. Currently, it's working good for Server1, where load-balancing configuration and 1 instance of Tomcat is present, but not ...
0
votes
0answers
25 views

DDoS attacks to my Apache/Nodejs server?

I checked by various netstat commands that many connections are made to my VPS Debian server. I have NodeJS app running behind Apache2 proxy pass and when I want to open this app its really slow (5-...
0
votes
1answer
26 views

Apache, Tomcat : Loadbalancing not working, failed to connect with Tomcat

I am working on loadbalancing 2 servers. Both of them are on different domain names. I have configured load balancing for them according. Currently, I am getting failed to make connection. What am I ...
0
votes
1answer
67 views

Running Bash Script in a Browser Even with Apache Permissions Set

I have a program that sits in a Docker container. I want to be able to go to a browser page and run the Docker container so the program will start. So, I created a bash script that runs the Docker ...
0
votes
2answers
34 views

Apache default page shows but Apache not found

In my raspberry pi when I go to http://localhost/ I see a Apache2 debian default page, So I went to /var/www/html/index.html and changed the source code to see if there were any changes in the ...
0
votes
0answers
48 views

permit ftp user to write in /var/www folder with pure-ftpd

I installed pure-ftpd as ftp server and I need to use it with apache web server. What I've done is: Created a ftp user and added to group www-data with this command useradd -d /dev/null -g www-data -...
4
votes
1answer
52 views

I have three different timezones on my Debian Linux

I use Debian 9.5.1. I used the dpkg-reconfigure tzdata command to set my timezone to Tehran. Now I have three timezones in my Linux. I execute the following three command together and look at logs: ...
0
votes
0answers
48 views

calling wget from a browser using php

My httpd is running with a daemon user. I want to do a wget using php from FTP server. When I run the php from linux server, the same downloads the required file from FTP. But when I call the same php ...
0
votes
0answers
31 views

Issues with IPv6 and Apache2

So I'm trying to set up an Ubuntu server with the web application running on IPv6 using an Internal adapter. I honestly do not know what the issue is. I've tried changing the adapter that is hosting ...
2
votes
0answers
39 views

Limitations of using “require user” multiple times in .htaccess in an Apache config? [closed]

Access to a Apache website can be controlled with a line as Require user john paul george ringo in a .htaccess file. See https://httpd.apache.org/docs/2.4/mod/mod_authz_user.html. This same rule ...
0
votes
1answer
17 views

Automating a php-info file creation and deletion process

How can one automate the creation and deletion process of a php info file? Automatic deletion is good in case one wants to be covered from cases it forgets to delete the file and then the file is ...
1
vote
1answer
54 views

How do I create/manage subdomains on my CentoOS nameserver with httpd to reach local running webserver from outside via SSL? [closed]

I would need some kind of workflow for my setup I took over from someone else. Lets name the headless server "example.com". named, dovecot, postfix, selinux and firewall-cmd are in place. I would ...
0
votes
1answer
165 views

Upgrade from Debian Stretch to Buster delayed apache2 and ssh services loading

I just upgraded from Stretch to Buster, and the two services apache2 and ssh delayed in loading at the boot, in some cases I had to login or to start them manually to make them work. I didn't have ...
-1
votes
1answer
31 views

Git Server Binding Directory To Port

I have a git server i have stood up. It is a basic one with all the remote repositories stored under /mygit/repo/ I can push and pull and all the other git stuff using this ssh syntax ssh:/...
1
vote
1answer
47 views

redirecting traffic via .htaccess or VirtualHost .conf fails with https on centos 7 multisite server

I have a Centos 7 server configured for multisite web hosting. One of the things I'm trying to do with this server is redirect traffic to old subdomains to subdirectories on our primary website. The ...
0
votes
0answers
12 views

set env variable apache when accessing a specific url

is there a way to take a user id sent in the http header and to rewrite it to a variable "remote_user" but only when accessing a particular URL? I'm aware of SetEnv but that doesn't do the trick I ...
1
vote
1answer
141 views

How to install multiple PHP versions in Virtualmin 6, Debian 9

By default Debian 9 comes with PHP 7, but I was interested in PHP 5 for older websites as well. I tried following/adapting this guide (not virtualmin specific). But this is the error I was getting (...