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). Generic webserver related questions should use the tag: webserver. Few of the other Apache related projects have their own tag, don't use ...

learn more… | top users | synonyms

0
votes
0answers
19 views

Trying to figure out how to install Apache for linux

Forgive me for being an amateur at all of this. I spent more than a couple hours trying to figure this out, and as a beginner it's getting frustrating. I'm following these set of instructions from ...
3
votes
1answer
26 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 ...
1
vote
1answer
30 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
0
votes
2answers
31 views

How to configure Apache init scripts, after compiling and installing the sources?

I installed Apache using this script https://gist.github.com/Benedikt1992/e88c2114fee15422a4eb The system is a freshly installed CentOS 6.7 minimal system. After installation I can find the apache ...
-1
votes
0answers
11 views

Centos Apache virtualhost bugs when not using www

I have these extra lines in default httpd.conf: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/var/www/html" ServerName maindomain.com </VirtualHost> <VirtualHost ...
0
votes
0answers
19 views

Can't access Apache server via LAN [closed]

I have created a LAMP stack (sqlite instead of mysql). I have checked that my apache session is up and running. However, using my phone/other laptop to access via LAN does not work. It simply returns ...
0
votes
0answers
17 views

SSL installation on apache2 / debian

So I have a debian wheezy installation where I someone started to install SSL but gave up and so I'm here to finish the task. problem - when accessing with http (port 80) - all is working. When ...
1
vote
1answer
29 views

Run program in readonly mode

I have an apache running under user apache with a lot of permissions (rw to multiple directories). Now I want to let some users upload programs/scripts via webform and execute them, with php function ...
0
votes
0answers
16 views

How to return 404 status code on existing file with Apache

Basically what i want to do is to return 404 for a file that exists. <FilesMatch "(xmlrpc\.php)"> Require all denied </FilesMatch> Is what I'm currently using, but I'd like to send ...
0
votes
1answer
22 views

Does Basic “hello world” run as CGI.?

My question is simple. I install apache on centos and create a file as index.html and just add the content of "hello world". Now, when I access my web it display the "hello world" quote. My question ...
0
votes
1answer
28 views

Apache VirtualHost redirect 302 (cyclic link)

I seek some wisdom, so please help... I have one VM acting as router/web server/dnsmasq server on IP: 192.168.100.1. And I have other machine acting as client. Server has IPTables rule to redirect ...
0
votes
0answers
14 views

umask issue with apache phusion passenger

We have a rails application where a unix account will write to directory belonging to another unix account. I have added both the accounts to a common group. The new file which is getting created does ...
0
votes
1answer
13 views

CentOS Apache Configuration

In the last couple days I have been setting up a Rackspace CentOS-based webserver which I took over from another developer. Amongst other things, I noticed that in the httpd directory, there were two ...
1
vote
0answers
13 views

Correct permissions for a cache directory

I have setup a PhalconPHP project on an AWS EC2 instance. To get thinks working I gave the cache directory 777 permissions. I realise this is bad practice - what would be the correct permissions for a ...
0
votes
2answers
38 views

Deny access to subfolder and file with .htaccess

i need deny access to condiguration files under some subfolder, now i have this rule but don't work <Files ~ "((foo|bar))$"> Order deny,allow Deny from all </Files> If i go to ...
1
vote
1answer
27 views

Help with apache website access

I'm a newbie in Unix so please be clear. I have to install and configure Apache in Debian, it all works fine, and in one point I have to use Lynx to show it works. I have edited the configuration page ...
0
votes
0answers
30 views

Django WSGI setup causing permission denied issues

I'm new in the world of Django. I've been working on setting up WSGI to serve my Django project. It is working fine on my personal machine but on the server I'm having a hard time to setup. I'm ...
1
vote
3answers
47 views

Check services running on the server and restart them if they have stopped?

I am trying to write a python script which shows me the services which are running on my server. The thing is that mongodb keeps going down on the server and each time it happens I have to manually ...
0
votes
2answers
100 views

Cannot Access LAMP Web Server on Ubuntu Server 14.04

UPDATE: So it seems that I can access the website from computers outside of the LAN, it's when I try to pull up from any computer on the same LAN as the server that I get an issue. From what I've read ...
0
votes
1answer
22 views

Install wordpress package always require apache?

Debian wordpress package depend on apache|httpd, lighttpd is also provide httpd, but when I try to install wordpress, apt require me to install apache2 ! What I should do ? I want to use only ...
-1
votes
1answer
54 views

Apache behind proxy: bypass Auth Basic for some ip

I need bypass basic auth to some ip, Apache is 2.4 and is behind haproxy, i have inserti this into Document Root section: <Directory /path/to/webroot> AuthUserFile /etc/apache2/.htpasswd ...
0
votes
0answers
46 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 ...
0
votes
1answer
47 views

ispconfig PHP not parsing on apache2 virtual host

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from ...
2
votes
3answers
193 views

`tail -n 40 /var/log/apache2/error.log` without `sudo`

Many times during the day I need to inspect my Apache log: sudo tail -n 40 /var/log/apache2/error.log I then have to provide my password. It's a clumsy workflow, so instead I am adding ...
1
vote
2answers
37 views

Wildcard SSL certificate does not work with naked domain

I have deployed a wildcard certificate (Comodo PlatinumSSL) for *.domain.com on Apache/Ubuntu 14.04. Everything works if the client visits https://www.domain.com but https://domain.com throws up this ...
2
votes
1answer
54 views

Generate Private Key for Existing SSL Certificate

I have been provided with a Comodo SSL certificate to deploy with Apache/ModSSL on Ubuntu 14.04. All I got was an email with links like this. I was not provided with a private key. It appears the ...
0
votes
1answer
19 views

Apache2.4- how to serve file as html

I have an apache2.4 server. On some page, I have a link to a log file. I would like to show the file content in a browser when the link is clicked, rather that serving the file do download.
0
votes
1answer
41 views

Reinstalling Apache on Raspberry Pi

I installed Apache 2 on my Raspberry Pi but was not able to configure it properly. I then tried to remove it and install again. To remove it I used the command sudo apt-get purge apache2 and then ...
0
votes
0answers
48 views

Apache CGI didn't work?

I install Apache2 to use dwww for browsing docs. At the first time it works ok. A second time (after I've rebooted the PC), Apache is still enable: when I type localhost in the browser, the default ...
0
votes
1answer
50 views

FreeBSD: Can't load libphp5.so or read php files

I'm having a bit of a trouble configuring my apache server on freebsd. I installed apache24, php5 and php5 extensions, moved my files over to ./data. I made some changes to httpd.conf: LoadModule ...
0
votes
2answers
59 views

How to change the document root directory in debian8.1?

My apache2 installed on the debian8.1. In the configuration file /etc/apache2/apache2.conf <Directory /> Options FollowSymLinks AllowOverride None Require all denied ...
0
votes
1answer
15 views

Where do I put the information for Django in Apache2 in Ubuntu

The Django documentation tell me to put WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com <Directory /path/to/mysite.com/mysite> <Files wsgi.py> ...
0
votes
2answers
49 views

Why don't I have a httpd.conf file in /etc/apache2?

I installed Ubuntu 14.04 LTS. Ubuntu seems to come with Apache2 but in the apache2 folder there no httpd.conf? Why is the file lacking and what do I have to do to create it?
0
votes
1answer
117 views

Why am I denied access to phpmyadmin?

Here is what my phpmyadmin.conf file looks like: # # Web application to manage MySQL # <Directory "/usr/share/phpmyadmin"> Order Deny,Allow Allow from 192.168.0.2 Allow from ...
1
vote
1answer
32 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
24 views

RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P]

What is the full meaning of following line - RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P] There are three application both running by python on ubuntu 14.4. they are visible as below link ...
0
votes
1answer
15 views

Apache autoindex: turn off hyperlinks?

Is it possible with apache autoindex to have it display the file listing in a directory, but not have the items hyperlinked?
0
votes
0answers
36 views

Use sudo in apache with SELinux

I am using CentOS 6.5. using Apache, I want to use sudo in exec. It works when SELinux stopped. how to configure SELinux to permit it. The php script <?php exec('sudo -u newuser ls /',$output); ...
1
vote
1answer
6 views

Getting htpassword for Red Hat

yum install httpd-tools doesn't work for me because of some admin privileges or firewall issues. I also tried some httpd-tools rpm (from this page ...
0
votes
0answers
27 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 ...
1
vote
2answers
42 views

how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?

I have an Apache webserver. I have some PHP scripts on it. Scripts are run as the user www-data - it is as the user that runs Apache. I want to configure Apache so that PHP scripts are run with ...
1
vote
0answers
127 views

Apache 2.4.12 Upgrade issue with OpenSSL 1.0.2c

for FREAK vulnerability, I tried to Upgrade Apache 2.4.12 from 2.4.10 and OpenSSL to 1.0.2c using following line ./config --openssldir=/usr/local/openssl make make test make install Once ...
0
votes
1answer
46 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
129 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
43 views

How to make Apache piped logging scripts not run as root?

The organization I work for is very security-minded. There is a separation between the group of System Administrators who are responsible for the operating systems (who, obviously, have root) and ...
1
vote
1answer
62 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 ...
0
votes
1answer
31 views

calibre opds error 403 on the epub file

I'm trying to use calibre2opds to put my library on my server (fedora21). Everything works fine, i can navigate, until i want to download an epub. I get en error 403: You don't have permission to ...
0
votes
1answer
38 views

Routing server requests using Apache Vhosts?

I have a multiple server setup that I am having difficulty figuring out the best way to solve a problem. I have several domain names that are accessed via a single IP address and served from one ...
0
votes
1answer
34 views

Split the same virtualhost configuration across multiple files

If you have only one large file in etc/apache/sites-available, is there a simple solution to split the apache vhost file into separate files so you could use them in the Apache folders sites-available ...
0
votes
2answers
33 views

I need to install two different versions of a library on a Debian-based distro

Jessie comes with APR (apache runtime portable) as package libapr1 version 1.5.1-3. However, that is the only version that Jessie has (it is also the newest version). I am trying to build the UIMA ...