The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

3
votes
1answer
32 views

One of my pdf files in my apache server can be accessed the other can't, with the same permissions and same directory

I have two pdf files in my server: -rwxr-xr-x. 1 apache apache 1422861 Sep 11 2014 file1.pdf -rwxr-xr-x. 1 apache apache 340815 Aug 27 13:06 file2.pdf I can access the first one by going to ...
0
votes
1answer
16 views

mod_rewrite all and if not found

I need to make some rewrite rules, but I doesn't use Apache HTTP for years and little bit confused with rules... Task: rewrite URLs from http://domain.com/test/file.js to ...
-3
votes
1answer
40 views

Create authentication when someone acces httpd in centOs

I have CentOs 6.6, What I want is: When someone access the var/www/html on his browser, I want a authentication bar to pop up and fill in his username and password. this is because I want httpd over ...
1
vote
1answer
37 views

httpd - Redirect all 404 to specific page

I want to redirect visitors who go to pages that don't exist on my httpd server. Lets say http://www.foo.com/wXGoL14445093-BgKb76/SNxM53-FxhsH.html (this page does not exist). Once we go there we ...
0
votes
0answers
63 views

Vagrant + CentOS 7 - Apache fails to start, I don't see an error

I'm spending some time trying to provision a Vagrant box running from a CentOS 7 base box. After a fresh install of Apache, I am able to hit the server over http and restart the server, but as soon ...
1
vote
1answer
33 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory ...
0
votes
0answers
31 views

security2_module module for apache is causing the “Forbidden You don't have permission to access / on this server” message

I installed the security2 module to my apache server by adding these following lines to my httpd.conf: <IfModule security2_module> Include ...
0
votes
1answer
51 views

How can I configure my server to avoid information leakage from the SERVER header of its HTTP response

I have a centos 7 server with apache v2.4.6 php 5.4.16 and OpenSSL 1.0.1e-fips installed. I was just doing a scan to it to see how secure my server is. I found out that my server is giving out ...
2
votes
1answer
135 views

evasive module in apache error: “Can't locate API module structure `evasive24_module'”

I wanted to protect my Apache/2.4.6 (CentOS) server in CentoOS 7 from DDOS attacks so after searching for some alternatives I found this page. They go through the installation of the modules evasive ...
1
vote
1answer
64 views

How can I solve “Your connection to 192.*.*.* is encrypted with obsolete cryptography”

I just set up my apache server with SSL installed on it, and everything is perfect except that when I open the page with https:// I get the following message when I click the padlock next to the ...
2
votes
0answers
1k views

AH00534: httpd: Configuration error: No MPM loaded

I have a CentOS Linux release 7.1.1503 (Core) system and I have installed httpd and the corresponding configuration file is : # # This is the main rConfig Apache server configuration file. It ...
0
votes
2answers
52 views

how to change default root in apache web server?

I am trying to change the default root directory in Apache webserver but having trouble accessing it from webbrowser. Disabled SELinux Stopped IPTables Trying to make : "/var/www/test/" as default ...
1
vote
2answers
83 views

Test script/program/app to check if my website is live

I just deployed my webserver using Apache in CentOS and I was wondering if anybody has any good ideas in how to check every specified amount of time if the server goes down and then I can use postfix ...
1
vote
1answer
54 views

Systemcrash suexec forkbomb.sh ulimits

i got this script named fork.sh: #!/bin/sh forkbomb() { forkbomb | forkbomb & } ; forkbomb if i call it trough suexec my whole system will consume 99% cpu. to prevent a normal bash forkbomb i ...
1
vote
1answer
78 views

chroot cannot find cgi file

I am unable to serve or execute a cgi file, and the cause seems to be that chroot is unable to find the cgi file when the permission is set to executable. $>ls -l /var/www/my/dir/test.cgi ...
0
votes
1answer
139 views

Apache giving me 403 on Virtual Host

I have been trying to get to grips with Apache in CentOS 7. I have set up two virtual hosts and created basic index.html pages as follows: /var/www/domainA/public_html/index.html ...
0
votes
0answers
46 views

Apache HTTPD v2.4.7 | mod_substitute + logging

I'm using HTTPD as a reverse proxy between my backend servers and clients. I'm using mod_substitute to replace some text in HTML response returned from the backend servers. Now I'm looking to log ...
1
vote
2answers
111 views

One-Liner needed: Stop httpd if running already & Start httpd if not running

As part of a provisioning script for CentOS 7 I am in need to have a one-liner that performs the following. Unfortunately, I have no clue how to achieve that. If httpd is running then stop it If ...
1
vote
0answers
56 views

How to investigate TCP, domain socket and similar activity of a process in AIX

I have to collect as much information as possible about a running production system under AIX 5.3. This must not cause any downtime and I may not install any additional software. The final goal is to ...
0
votes
1answer
213 views

unknown facility name “local8”

I'm setting up remote logging for the first time and am able to output all httpd messages to local6. I'm getting an error, and have a general question about rsyslog. First: I tried splitting ...
1
vote
1answer
256 views

httpd 2.4.6 on CentOS 7 - question related to module config in httpd.conf

I am sorry to post this type of question here but due to the great experience and skillsets here, I hope for your understanding. I am using (unfortunately) httpd package (v 2.4.6). In various guides, ...
2
votes
1answer
370 views

httpd 2.4.10 in CentOS 7

How can I update my httpd version 2.4.6 to 2.4.10? If I try to update it with yum, it says that I have the latest version. I want to update httpd to 2.4.10 version because a security issue of the ...
0
votes
0answers
500 views

Install Apache https 2.2 under Centos 7

I would like to install httpd 2.2 (httpd-2.2.15-39.el6.x86_64) under centos 7. The default repositories only have httpd 2.4 available. Does anyone know where there is a centos 7 repository that has ...
1
vote
2answers
295 views

Why does httpd give an error following a symlink into my home directory on Fedora?

I've just re-enabled an app after OS change. Symbolic link to it is located of course in /var/www/myapp . After changing permissions to 0775 (even 0777 temporary), changing owner to apache:myuser, ...
0
votes
1answer
1k views

httpd memory usage

Having some problems with httpd (Apache/2.2.29) memory usage. Over time, memory usage in the httpd processes creep up until it's eventually at 100%. Last time I restarted httpd was about 24 hours ...
0
votes
1answer
52 views

Running xinetd and httpd on centos 6

We are running several centos 6.4 lamp stacks, and our backup solution (unitrends) has a client that requires xinetd. Can these two coexist on the same server? If so, is there any secret handshake I ...
0
votes
1answer
19 views

PHP framwework, multiple sites and httpd and DNS

I'm wondering if this is possible: There is a PHP framework and someone made several sites, which can be accessible like this: .../index.php/aaa .../index.php/ccc I would like to somehow map DNS to ...
0
votes
0answers
116 views

Unable to get kickstart file from locally hosted http

I'm trying to get a vm up using a kickstart file. However, whenever the virtual machine initalize, it says it is unable to located the kickstart file from the location provided. Code to build vm: ...
24
votes
6answers
3k views

Why is it risky to give sudo vim access to ordinary users?

I'd like to create a new user and give him sudo access. To be specific, I want him to use sudo vim and edit httpd.conf. I wrote this in sudoers: user ALL=(ALL) /usr/bin/vim ...
3
votes
2answers
6k views

apache won't restart after adding VirtualHost conf file, why not?

In a CentOS 7 server, I get the following error when I type sudo apachectl restart after I add an include file at the bottom of httpd.conf: Job for httpd.service failed. See 'systemctl status ...
0
votes
1answer
131 views

httpd and mod_security woth OWASP's dos rules

I'm trying to setup the mod_security on my httpd web server. I have followed the basic steps yum install mod_security I put the modsecurity_crs_10_setup.conf in the /etc/httpd/modsecurity.d I put ...
0
votes
0answers
3k views

CentOS 7 httpd failed to make connection with backend

In a CentOS 7 server with apache httpd 2.4 set up as an ssl reverse proxy for tomcat, I am getting an error indicating that httpd is not able to connect with tomcat. How can I resolve this error so ...
0
votes
1answer
1k views

CentOS 7 won't serve static https content, why not?

I just re-installed httpd and created a static index.html file. I have firewalld configured to allow internet access to the https service. But when I type https://my.server.ip in a web browser, the ...
0
votes
2answers
878 views

error re-installing httpd on CentOS 7, how can I resolve it?

On a CentOS 7 server, I am encountering an error when trying to re-install httpd. How can I resolve this error and get httpd up and running again? Here is the first error that resulted when I ...
0
votes
1answer
177 views

SSL-encrypted proxy server for war files in CentOS 7

How can I configure a CentOS 7 web server to serve only SSL-encrypted content from war files, with tomcat running behind a proxy server? I imagine this involves using firewalld, https, and tomcat. ...
0
votes
0answers
128 views

web container options for war file in CentOS 7

I know that Tomcat and NginX are both able to host web applications that are defined by war files. But can httpd also host a war-file-based web application on a CentOS 7 server? If so, how would you ...
0
votes
1answer
41 views

Configuration of compiled Apache2

When installing a module, I noticed the following: ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured. [Tue Dec 09 19:01:10 2014] [notice] ModSecurity: APR compiled ...
1
vote
1answer
39 views

Confusion regarding generating self signed certificate for application portal developed using liferay

We have a Application Portal developed using Liferay bundled with tomcat. There are two application servers running liferay and we use httpd as a front-end which forwards requests to application ...
2
votes
1answer
3k views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
0
votes
0answers
65 views

Accessing CentOS7 server from public

recently I switched to CentOS 7 OS and set up basic webserver with Apache. I had no problems configuring SSH, FTP and LAN access to the webpage. But accessing from other IP's won't work. I'm 99% sure ...
1
vote
1answer
20 views

Domjudge keeps Not Authenticated

I am trying to install Domjudge in my VPS. After I run ./configure, make and config database I login at /public/login.php with the user/pass: judgehost/judge but it doesn't log me in. I try at ...
0
votes
0answers
62 views

unable to update HTTPD, mod_jk dependency error

While trying to update httpd in RHEL6, getting some dependency error as below: Unsatisfied dependencies for mod_jk-ap20-1.2.31-1.x86_64: httpd = 2.2.3 is needed by mod_jk-ap20-1.2.31-1.x86_64 I am ...
1
vote
0answers
958 views

Where is module prefork.c settings in Centos 7?

I used to edit the settings in etc/conf/httpd.conf for better memory performance <IfModule prefork.c> StartServers 2 MinSpareServers 3 MaxSpareServers 3 ServerLimit 15 ...
1
vote
0answers
31 views

Can you have two directory rewrite rules in one configuration?

In /etc/httpd/conf.d for custom conf file where you have multiple sites and databases but with different systems installed in non root folders can you declare more than one rewrite rule like below? I ...
0
votes
2answers
87 views

HTTPD/apache 2.4: strange problem with alias

On httpd 2.4 alias /repo /repos <Location /repos> Require ip 192.168.0.7 </Location> I can reach repos but no repo(403 forbidden) if i use directory instead of location nothing change ...
0
votes
1answer
103 views

Apache - Allow access for folders starting with /

I'm running apache in a linux environment. I've to serve files whose directory structure have "/." in it. Now, apache by default won't allow files with /. To remove the constraint, I've included the ...
0
votes
1answer
75 views

Incorrect Directory Index

I am attempting to load as the default DirectoryIndex home.html, but the site keeps jumping to index.php. Website is built on WordPress. httpd.conf DirectoryIndex index.html home.html index.php ...
0
votes
1answer
309 views

How to set & retrieve a cookie via an executable bash script that is on the web

A simple bash script that can set a cookie when executed via web : #!/bin/bash echo "Set-Cookie: eee=1" echo "Content-type: text/html" echo "" echo "test" I replaced the entire codes above with the ...
6
votes
3answers
1k views

How can I set up Apache to use port 1 and other ports below 80?

The mysql user cannot use ports below 1024 because these are reserved for the root user. Apache, on the other hand, can use port 80. Apache runs as root before it runs as Apache and thus it can use ...
0
votes
2answers
2k views

Redhat “httpd” start failed showing “ELinks: Connection refused”

I'm on RHEL 6.5 and Apache 2.2.15. And now applying a trusted SSL on the Server. After adding the respective SSL related Certs and files, my Apache is NOT starting up anymore. Here are some outputs: ...