Questions tagged [apache2]

The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
3
votes
5 answers

apache won't stop when using "service apache2 stop"

I'm trying to work out an annoying issue. We have our server setup with nginx as the main front end, and then Apache2 as the backend for running our Perl scripts. I'm fighting through rewriting some of the Perl scripts (as they were used to running…
Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
3
votes
0 answers

Multiple ruby on rails web apps running on one directory in Apache without modifying/adding all the time

What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically so I do not have to add a new in…
3
votes
1 answer

Getting HTTP/2 Working on Apache

I'm more of an nginx head these days (and I don't have any problems getting HTTP/2 working with that) but I'm completely flummoxed by Apache and cannot seem to get it to serve a site over HTTP/2. The Server is Debian 8. I've installed Apache 2.4.27…
user32350
3
votes
1 answer

What does this wordpress .htaccess rule do?

In the default .htaccess rules for a WordPress 4.7 multisite subdomain installation, I'm trying to understand the purpose for one particular rule. First I'll present the rule on its own RewriteRule ^(wp-(content|admin|includes).*) $1 [L] In…
Joe Flowers
  • 137
  • 4
3
votes
0 answers

How to make apache2 connect through SOCKS5 server that I am runnning?

I have a website ran on apache2 and a SOCKS proxy server that are both hosted on the same computer. The website can be accessed publicly and my SOCKS5 server is on localhost. How do I make the incoming and outgoing traffic from the apache server go…
Anderson
  • 131
  • 1
3
votes
1 answer

web server not reachable

On a centos-7, I have installed web server but I can not see the test page through web browser. # yum list httpd* Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.mirror.iphh.net * epel:…
mahmood
  • 1,022
  • 7
  • 20
  • 33
3
votes
0 answers

Apache2 rewrite root to various subdirectories/subsites on test server

I'm in the process of migrating from an old Debian 6 server to a nice new shiny Ubuntu 16.04 server. On our Debian server, we have the main domain but also several subdomains (each of which has a .conf file), such…
e_i_pi
  • 223
  • 1
  • 2
  • 10
3
votes
1 answer

Apache: Client denied by server configuration

I have switched from apache 2.2.22 to apache 2.4.10, and all of the sudden an alias I use to access some logs no longer works. This is my configuration file: ServerAdmin webmaster@localhost ServerName…
Dave
  • 133
  • 1
  • 4
3
votes
2 answers

#1146 - table doesn't exist but showing in sidebar in phpmyadmin

I copy my database files from windows wamp/bin/mysql/mysql5.6.17/data into my ubuntu /var/lib/mysql/ Folders of my database_name and ibdata1, ib_logfile0, ib_logfile1 files. Now my all databases and tables are visible into phpmyadmin but when…
sirajalam049
  • 181
  • 2
  • 9
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
1 answer

VirtualHost/.htaccess - redirect from .com to .se/en not working/ignored (Polylang?)

I'm trying to redirect domain.com to domain.se/en, but it just won't work. It's like another rewrite or redirect is happening to domain.se/sv before I get the chance. I've tried multiple VirtualHosts configs and .htaccess variants without success.…
3
votes
2 answers

apache2 https redirect to http without ssl cert

We have an apache server which hosts multiple domains from, which some have https enabled and some do not. Now the problem is that if I access https://exampleWithoutHttps I will come to the content of https://exampleWithHttps. I would like to …
sherif
  • 151
  • 1
  • 4
3
votes
1 answer

Using .htaccess "folder" rules to force different content-disposition types?

I'm using a origin-pull CDN to distributed files quickly right now. It pulls the files from the origin, including the "type" of the file (download/octect-stream right now) and outputs it to the client. For that I have the following webserver…
Taapo
  • 145
  • 1
  • 4
3
votes
1 answer

Centos 6.8, Apache 2.2, stable for years suddenly mod_rewrite seems to be failing

I've got a setup that has been stable for years. Suddenly I'm getting File does not exist in the apache error log on items that should be getting processed by mod_rewrite. Last night I did a package update on php/mysql (not apache) but I rolled back…
Matt
  • 141
  • 7
3
votes
1 answer

Drop trailing slash in apache for directory

I have the following url www.example.com/advice/ now notice the trailing slash at the end of the url? I would like that to be removed to be something like www.example.com/advice. Now when I enter that URL in the browser I get redirected to the with…
Steve
  • 135
  • 1
  • 5