Questions tagged [httpd.conf]

httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file. It is also the configuration file for OpenBSD httpd.

httpd.conf is a typical name for a web server configuration file.

Historically, this is the main Apache configuration file, but has been adopted by other servers, including OpenBSD httpd.

In recent Apache installations, the main file can also be called apache2.conf.

616 questions
0
votes
1 answer

apachectl reports that it's in worker mode, however the configuration seems to be set to prefork

I'm using a VPS running Apache2.4 and CentOS7. I'm hitting some threading issues and would like to try to run Apache in prefork mode. If I run apachectl -V to check which mode I'm in, I get this result: Server MPM: worker threaded: yes…
0
votes
2 answers

.htaccess file not being read on localhost

My live site reads the .htaccess fine. I got 404.php and mod_rewrite working fine there, but on my localhost... nothing. PHPmyAdmin 3.1.5 PHP 5.2.9-2 Apache 2.2 My .htaccess is this: ErrorDocument 404 /404.php Options…
Bryan
  • 111
  • 1
  • 1
  • 2
0
votes
1 answer

How to get mod_rewrite specific log messages in Windows Server and which file do I need to get?

I have an issue on getting mod_rewrite specific log. I found this on a website and with help from a friend I managed to get this to run in Windows Server Powershell. Below is the command line: Get-content -Path D:/wamp64/xxx -wait -tail 10 |…
Petri
  • 47
  • 1
  • 10
0
votes
1 answer

How to use httpd (https/ssl) as proxy server for tomcat

I have installed httpd and tomcat on my server but somehow I'm not able to connect them. ServerName www.harshrathod.dev ServerAlias harshrathod.dev ServerAdmin ****************** DocumentRoot…
0
votes
1 answer

Setting up Ajax Push Engine (APE) to play nice with Apache

I'm trying to setup Ajax Push Engine (http://ape-project.org) on a CentOS server. I've installed the APE Server and verified that it is running correctly. I setup a subdomain on a separate IP, but I still can't get the javascript to connect. I…
James Simpson
  • 1,651
  • 2
  • 15
  • 31
-1
votes
1 answer

Multiple websites on single bind dns server

I am using CentOS 6, BIND and HTTPD I have created 3 machine: DNS Server, HTTPD Server, Client Machine - All are working in a virtual environment under VMWare. IP of DNS server is: 10.0.2.16 IP of HTTP server is: 10.0.2.18 I have created two…
Neetu
  • 1
-1
votes
1 answer

how can i get jenkins stop listening on for remote connection on mac os x `

actually my Jenkins server is installed on mac os x, and it is having unsecured http port 8081(http:www.mydomain.com:8081). We changed http to https by securing with letsencypt and using apache as reverse proxy and everything working fine and…
navin
  • 1
  • 1
-1
votes
1 answer

What modules can be enable/disable in a default Apache 2.4 setup?

I am setting up a new CentOS 7 server with Apache 2.4 and I am planning to add PHP-FPM trough mod_proxy_fcgi (as per this post here). I don't think all that's enabled by default is needed in this case but sadly I am not an Apache expert so I need…
ReynierPM
  • 710
  • 5
  • 14
  • 30
-1
votes
1 answer

Optimized httpd rewrite rules for 301 redirects

I am new to apache rewrite rules; I am writing the rules for 301 redirects for redirecting an old site's pages to new site. Please find below the rules -- #1 RewriteCond %{HTTP_HOST} ^(www-stage\.)?newsite\.com.au$ [NC] RewriteCond %{REQUEST_URI}…
-1
votes
1 answer

Amazon EC2 - Forcing redirect of non-www http and https domains to "https://www" domain in httpd.conf

First and foremost, thank you for your time with my question. I am attempting to forward all traffic from http:// and https:// to "https://www.[domain].com/[etc]" I am currently able to force all "www." traffic to "https://www." using the setup in…
-1
votes
1 answer

RewriteRule running after Require test failed which rewrites 403.shtml to website content instead of error message

When a request gets denied due to require all denied, it first gets routed to the ErrorDocument 403.shtml but then that gets rewritten rather than stopping there and the site content actually gets served up (albeit with a 403 status code). We've…
sa289
  • 1,318
  • 2
  • 18
  • 44
-1
votes
1 answer

Https to http redirect for only one of multiple sites on the same server

I have several sites on a single server, and an SSL certificate. The problem is that i need to redirect all sites from https to http except one, which should be the only site using https. Say, https-subsite.mainsite.ru for example. There are some…
derkien
  • 1
  • 2
-1
votes
1 answer

Best way to setup apach default site

I'm working on setting up a web hosting system and was wondering what the best way to configure the default configuration is to look in a folder if there is no vhost for it. Here's how I would like it setup: site1.com vhost setup and serves from…
Aaron
  • 101
  • 2
-1
votes
1 answer

How to add /home/user/public_html as virtual host in apache - centos

In Directadmin (I used it before) when we create a reseller, a new user with a home directory was created and user could add domains in a home directory like /home/user/domains/example.com/public_html How i can add /home/user/public_html as virtual…
Hamidreza
  • 163
  • 1
  • 2
  • 9
-1
votes
1 answer

Running Multiple sites with multiple domains apache

I am having a rough time running apache and using multiple domain names here is a snippet of my config file. I keep getting a error saying that NameVirtualHost has no VirtualHosts. I want them both running on the same IP and I'm not sure why this…