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

Import/include external VirtualHost files from directory to be used inside Apache's httpd.conf

Would there be a solution to import all files with virtual host records in to httpd.conf ? For single file this solution works fine: include domain1.conf include domain2.conf include domain3.conf But can't find the solution to include all files…
user387694
0
votes
1 answer

Apache httpd mod-auth-form giving error 405

I have been trying to setup a new website, and I have now ran into a major problem. When I log in to the page it simply gives me the following error when I enter the correct credentials: Method Not Allowed The requested method GET is not allowed for…
0
votes
1 answer

MAMP setting up a host

I've a website which use a google api by a specific domain. Then my google App work on domain like dev.mydomain.com So i need to create a VH but it doesn't works. DocumentRoot /Applications/MAMP/htdocs/myproject ServerName…
alex
  • 3
  • 2
0
votes
0 answers

Apache alias not going to work properly

I have two NIC on my CentOS 7 system. One is private and second is public. I have following configurations of each virtual host Virtual host for private IP ServerName localhost.com ServerAlias localhost.com.pk DocumentRoot…
0
votes
1 answer

Apache not running - "refused to connect" error

I am on Mac Yosemite. Apache 2.4.16. My localhost and local sites stopped working. They've been working fine for months now until I tried to update/fix MySQL. I get the following error: This site can’t be reached localhost refused to…
srodrig
  • 11
  • 2
0
votes
1 answer

Apache HTTPD mod_rewrite rule to redirect a specific path to a Tomcat Worker (AJP)

I've an Apache HTTPD server (and it's driving me nuts already). I've configured several tomcat workers. So a https://something.domain/WebApp1/ activates the web-application on the specified tomcat via AJP. However, due to a naming convention change…
OddDev
  • 111
  • 6
0
votes
2 answers

Apache: combine two AliasMatch statements into one

Could be the following AliasMatch statements for Apache 2.4 combined into one? AliasMatch ^/([0-9]{6})$ /var/www/data/$1 AliasMatch ^/([0-9]{6})/(.*)$ /var/www/data/$1/$2
Neurotransmitter
  • 468
  • 1
  • 6
  • 17
0
votes
1 answer

NameVirtualHost does not work: only loads default host

I have configured Apache 2.2 so that I can have 2 hosts. The problem is when I connect using the second host, the default one is loaded. This is the vhosts.conf file: NameVirtualHost *:80 ServerAdmin support@desytec.com …
jstuardo
  • 155
  • 1
  • 7
0
votes
1 answer

Apache configuration - Why I get redirect loop?

I have Apache server and JBoos server with my application on my local computer. This is my Apache configuration: httpd.conf ServerRoot "C:/opt/Apache" Listen 80 LoadModule actions_module modules/mod_actions.so LoadModule alias_module…
kuba44
  • 101
  • 3
0
votes
1 answer

Parse file and redirect from Apache config file

This is no doubt a no but has anyone has experienced reading and redirecting the request in apache based on a config rule? EG:
0
votes
0 answers

Apache directive priorities: vs

I am attempting to get the following 2 blocks of directives to work together, but for some reason the block is taking precedence over the block, regardless of what order I put them in: SetEnvIfNoCase User-Agent "baidu"…
0
votes
2 answers

Subdomain redirection, URL Masking

My issue is simple but I can't seem to find the solution. I have a domain www.domain.com that has subdomains. www.domain.com 's document root is /home/domain/public_html Subdomains (excluding www) need to be redirected to example.com i.e. abc.domain…
0
votes
1 answer

Masking URL, Subdomain redirection

We have hosted a Java web application for www.domain.com on Apache & Tomcat. I have two problems, as follows 1) Directory Index in Apache lists home.jsp ahead of redirect.jsp. For my domain.com in the web.xml, I have maintained redirect.jsp as the…
0
votes
1 answer

Apache Keeps reverting to mpm_prefork (Apache 2.4.7 / Ubuntu 14.04.2)

I have had this problem for over a year now whereby each time there is a security update to Ubuntu and I have to reboot the server, Apache 2.4 decides to start using the mpm_prefork worker despite the fact I have mpm_event set as the enabled module…
MitchellK
  • 149
  • 8
0
votes
1 answer

fcgid configuration breaks Apache

I'm trying to include the following block of code on my site in order to run a fast-cgi script: # Create a directory for the iipsrv binary ScriptAlias /fcgi-bin/ "/home/USERNAME/SITENAME/fcgi-bin/" # Set the options on that directory