Questions tagged [httpd]

httpd is a typical process name of a web server.

httpd (for Hyper Text Transport Protocol Daemon) is a typical name of the web server process.

Apache is the most popular web server that runs using this process name. It is also the name given to the new default server for OpenBSD 5.7 and on.

1448 questions
3
votes
1 answer

httpd.service is reloaded or killed

On a new CentOS7 server, I got the issue, that every night the httpd.service is getting reloaded. And sometimes, around same time, it is getting just killed. systemctl status httpd: ● httpd.service - The Apache HTTP Server Loaded: loaded…
lickmycode
  • 167
  • 3
  • 9
3
votes
0 answers

Apache httpd sets X-Forwarded-Host instead of Host header

I have an Apache httpd proxy (proxy.example.com) that proxies requests to an application server (app.example.com). Now I'm trying to overwrite the Host header in requests to app.example.com with a directive like this: RequestHeader set Host…
dokaspar
  • 165
  • 1
  • 2
  • 8
3
votes
1 answer

How to give SFTP/SSH access to external developer and jail it to public_html?

I found very similar questions (like this), but I could not find a solution that applies to my situation. I need to give an external developer access to one of the hosted website on the machine. The directory structure is this: apache apache 4096…
user310317
3
votes
0 answers

Nginx Http Secure Link Module not working

I am using nginx secure_link to prevent video from hotlink. If main server key match remote server key. The video will able to access/watch. Otherwise if user access link directly without md5 link video return 403. . . The md5 key is match both main…
3
votes
1 answer

Apply Apache httpd configuration to exact file and no subdirectories

I have a problem that it seems should be simple. I want to apply a group of configuration directives to a single file (in this case myfile.html in the DocumentRoot). There may also be subdirectories containing myfile.html, these should not get the…
amoe
  • 185
  • 1
  • 9
3
votes
2 answers

Dynamically set RequestHeader host within Apache mod rewrite

I'm using Apache mod_rewrite and I'm looking to dynamically set the Host header with RequestHeader based on the domain from the QUERY_STRING. How would I dynamically set the Host? Given the following request…
codejunkie
  • 51
  • 1
  • 1
  • 7
3
votes
1 answer

Apache httpd conditional redirect based on response header

We are using an Apache httpd as reverse proxy. In special cases when an error occurs in the backend system, it returns a special header like X-Error=1 (besides the status code 500). Is it somehow possible to redirect those repsonses based on the…
ahaertig
  • 65
  • 1
  • 7
3
votes
1 answer

Apache spawning enormous number of httpd processes

I am running a CentOS 6.7 machine (16 GB vRAM, 8 vCPUs) with a simple web server setup (Apache/2.2.15, PHP/5.3.3, MySQL/5.1.66), hosting an online shop with a moderate number of page impressions (about 2,000 ~ 4,000 per day). The server ran smooth…
proximus
  • 85
  • 2
  • 8
3
votes
1 answer

Unable to connect to apache from the web

I have an apache instance running with vhost configured, here is the httpd.conf: #Listen {the_server_ip}:80 Listen 80 # ServerAdmin webmaster@example.com DocumentRoot /var/www/example.com ServerName example.com …
3
votes
1 answer

ValueError: Type http_sys_content_t is invalid, must be a file or device type

I need to set selinux permissions on a non-default httpd directory: /www/virtualhosts/site01, ect. So I issue: [mybox]# semanage fcontext -a -t http_sys_content_t "/www(/.*)?" And get: ValueError: Type http_sys_content_t is invalid, must be a…
a coder
  • 789
  • 4
  • 20
  • 38
3
votes
3 answers

PHP not working with Apache on Centos 7

I'm on centos 7 and have the httpd service (2.4.6) installed from yum no problems and I had to install PHP from a different repo remi to get php 5.6 installed. PHP works on the command line and the httpd service is running but all php is not being…
llanato
  • 211
  • 2
  • 4
  • 12
3
votes
2 answers

Apache serving static files within VirtualHost

I have the following VirtualHost configuration. ServerName myservername.website ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ …
tgandrews
  • 155
  • 1
  • 1
  • 7
3
votes
4 answers

Apache httpd reverse proxy delegate SSL to backend

Usually using Apache as reverse proxy is done to do SSL offloading and so Apache handles all the SSL stuff and the backend server just manage plain http. But is it possible to do the opposite ? I'm not talking about SSLProxy where Apache and backend…
Ghetolay
  • 131
  • 1
  • 2
3
votes
2 answers

httpd - virtual hosts go to the same website

here is my /etc/httpd/conf.d/test.conf NameVirtualHost *:80 ServerName test.dev ServerAlias test.dev.*.xip.io DocumentRoot /var/www/html/user/test/web ErrorLog "/var/www/html/user/test/app/logs/httpd_error.log" …
kapitanluffy
  • 139
  • 1
  • 1
  • 8
3
votes
1 answer

Can I view the resolved config Apache is using?

Is there a way to view the final "effective" config a running Apache instance is using after resolving any/all includes and the like? I'm looking at a config that has a web of includes and suspect some of the issues I'm having are related to the…
Wilco
  • 365
  • 5
  • 17