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
138 views

Undefined symbol: ap_unixd_config

I accidentally tried to upgrade to Apache 2.4 from 2.2, I've mostly downgraded, but now I am getting the following error: Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server: ...
0
votes
2answers
609 views

Sub-process /usr/bin/dpkg returned an error code (1)

I understand that this is a generic error message, but I'm having trouble deciphering what's going on - why doesn't Apache want to update? (Reading database ... 50302 files and directories currently ...
1
vote
0answers
18 views

RHEL / SELinux - Apache unable to write to a directory it can write to [duplicate]

I have a RHEL 7 machine running an Apache web server with multiple virtual hosts on it. I've recently run into an issue where I am unable to upload media, e.g. images / pictures / video, to my machine ...
2
votes
0answers
40 views

Apache 2.2 and php-fpm directory configuration

I have installed apache 2.2 and php-fpm. In httpd.conf: DocumentRoot "/var/www/local.site/public_html <Directory /> AllowOverride None Order Deny,Allow Deny from all ...
0
votes
1answer
60 views

Apache redirect to https if the request is not from localhost

I have a Centos 6.7 with apache 2.2.15. I want to redirect all traffic from port 80 to 443 with one exception. The traffic who come from localhost I want to remain on port 80. Now I use this config ...
1
vote
2answers
47 views

awk regex for apache rewriterule

I have these variant of urls RewriteRule ^/trendy/the-reason-for-example/? http://www.example.com/trendy/the-reason [NC, L, R=301] RewriteRule ^/lol/2015/10..._for-example ...
1
vote
0answers
36 views

WebDAV + davfs — error copying large files

I am using Apache on server, with WebDAV. On client linux, I have davfs2 mounted folder. When I try to access small file, everything works fine. When I try to access image file size of 2Gb, I am ...
0
votes
1answer
41 views

Apache loadbalancer not serving requests intelligently

My Apache LB is serving requests to a failed node as well. Am I missing something? worker.list=node1,node3,loadbalancer. worker.node1.port=8009. worker.node1.host=10.0.0.17. ...
0
votes
0answers
61 views

Symbolic link not allowed or link target not accessible: /home

I cannot access http://localhost/~user. The error message is: Symbolic link not allowed or link target not accessible: /home I do not have a /home. In my case it's: /RAID/home/*/public_html I ...
2
votes
2answers
206 views

configuring httpd for multiple domains on same server

A CentOS 7 web server is hosting one public domain, called mydomain.com. The same server also has a separate vpn that hosts two apps for private authorized/authenticated users only. Httpd is set up ...
0
votes
1answer
135 views

Check if Apache is Installed in Amazon Linux AMI

How can I check if Apache is installed in my Amazon Linux AMI, which is based on RHEL 6? In Ubuntu, I use: dpkg --get-selections | grep apache But that doesn't work in this case. Note, I need to be ...
1
vote
1answer
21 views

Interactive bash script

I'm writing a script that shuts down the Apache service, performs a function, and turns it back on. I'd like to get some type of interactive confirmation for each process. I'm not familiar with ...
1
vote
2answers
75 views

Why does Kali Linux expose httpd on port 3000?

I scanned my local network and found that Kali linux was exposing apache2 on port 3000. Its a pretty much vanilla installing running inside Virtualbox on an OSX host Is this there by default and why ...
0
votes
0answers
22 views

Apache Load balancer sending traffic to failed nodes

I have an Apache load balancer configured for 2 nodes. Upon stopping one of the nodes the request is still going to the stopped node. Can anyone please help. worker.list=node1,node3,loadbalancer ...
1
vote
1answer
29 views

Apache access.log getting updates after renamed

I have a file on my Ubuntu system called access.log that file get all my errors on my website. The problem is that file its to big right now so I renamed for access-old.log and create a new file ...
0
votes
0answers
40 views

LAMP on Knoppix

I am trying to use the setup at this link to set up a LAMP server on my Knoppix USB drive. I have seen in multiple places that Knoppix comes with Apache, MySQL, and PHP; however I am unable to find ...
3
votes
1answer
89 views

No packages Apache and mod_wsgi3 have been found in the repositories

I'm trying to instal Apache24 and mod_wsgi3 to my FreeBSD VPS (droplet) with this command: sudo pkg install bash ap24-mod_wsgi3 py27-virtualenv mysql56-server but apparently 'ap24-mod_wsgi3' has ...
1
vote
1answer
137 views

Many domains using a single IP address with BIND 9.7

I'm in the middle of migrating and configuring a web server with two domains (with one more in the future), and no sub-domains so far, but using a single IP address (for now). This type of ...
0
votes
0answers
30 views

Proxy pass on Apache redirects instead of proxying

I am trying to proxy an http service running on the same machine using apache proxy pass. When I try to connect to my subdomain.domain.com, I am redirected to 127.0.0.1, which is the address that I am ...
0
votes
2answers
42 views

Domain only for web server

I have a domain which i want to point to my server. But i don't want to allow other people to use this domain to reach the server, only specific ports on the server (web server, so port 80). So if ...
0
votes
1answer
1k views

Fedora 22 - Failed to restart httpd.service: Access denied

I want to start web development and I was trying to install LAMP. I installed Apache using this tutorial but the command they give to start the apache server fails: systemctl start httpd.service ...
0
votes
0answers
36 views

What is the matter with my apache?

Today my apache2 suddenly didn't run. cat /var/www/html/info.php <?php echo phpinfo(); ?> No output, no error info at all, no result when to input http://127.0.0.1/info.php in Firefox. cat ...
4
votes
1answer
152 views

Can't disable SSLv3 in Apache + mod_nss

I am trying to implement TLS through mod_nss in Apache (RHEL 7). As per the documentation, I have installed mod_nss and removed mod_ssl. I have followed the steps outlined in the documentation (see ...
0
votes
1answer
591 views

Apache won't restart after configuring Virtual Hosts

I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening ...
0
votes
1answer
72 views

Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)

I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user. Running ...
0
votes
1answer
71 views

URL rewriting and internal links on Apache

I have a 2.2 Apache with the weblogic plugin enabled, which it simply redirects all the requests to the application server. Basically, when I call the page http://myip/blabla/home.page, it is a page ...
0
votes
1answer
92 views

Sudo Apache, with command line ? (not visudo)

I have visudo-edited /etc/sudoers this way: User_Alias APACHE = www-data Cmnd_Alias FIREWALL = /sbin/iptables, /sbin/ifconfig, /sbin/route APACHE ALL = (ALL) NOPASSWD: FIREWALL (To allow php ...
0
votes
1answer
69 views

how to setup VPS domain registered via different service?

I have a domain that was registered with network solutions and my vps is hosted via hostWinds. I got a cheap/budget VPS because I'm a developer by trade and would rather know how to set all this ...
0
votes
1answer
48 views

ubuntu 14.04 apache 403 error befor logging in

i have an ubuntu Desktop version with LAMP SERVER installed on it when i restart the server and try to access it over the network i get Error 403 forbidden but after i login to that system from ssh or ...
0
votes
0answers
8 views

Virtual Hosts: Sites-available/myfilename.conf structure

I had the url http://mydomain1 running locally on apache. Now I want to make http://mydomain2 accessible as well. I added the respective Tags in the myfilename.conf <VirtualHost *:80> ...
0
votes
0answers
108 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 ...
4
votes
1answer
97 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
44 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
221 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 ...
0
votes
0answers
56 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
49 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
52 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
29 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
94 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
50 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
20 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
16 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
337 views

Deny access to subfolder and file with .htaccess

I need to deny access to configuration files under some subfolder. Currently I have this rule but it doesn't work: <Files ~ "((foo|bar))$"> Order deny,allow Deny from all </Files> ...
2
votes
1answer
29 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
198 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
212 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
387 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
34 views

Install wordpress package always require apache?

Debian's WordPress package depends on apache|httpd, lighttpd also provides httpd, but when I try to install WordPress, apt requires me to install apache2! What I should do? I want to use only ...
-1
votes
1answer
344 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 ...
1
vote
0answers
228 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 ...