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

apache httpd.conf subdomain setting cause 500

I am trying to adding a subdomain for my mobile site. But when I add below code into my httpd.conf, i could open m.domain.com in my browser, but failed all www.domain.com with 500 Internal Server Error return. NameVirtualHost *:80
cj333
  • 109
  • 11
0
votes
2 answers

Apache(httpd) virtual host configuration

I am trying to configure virtual host on local web server What i want is when i go to localhost or server IP i want to see the default centos page and when i go to the other websites that are configured in /etc/hosts then i want to see those…
redhatengineer6
  • 79
  • 2
  • 5
  • 9
0
votes
1 answer

Apache HTTPD "sites/mods-enabled/available" configuration

I've recently moved from the default Ubuntu/Debian apache2 packages to installing the Apache HTTPD from the official tarballs. I have everything working fine, but I wanted to know if there's any easy way to change to use the sites-* and mods-*…
wyqydsyq
  • 395
  • 1
  • 3
  • 9
0
votes
2 answers

Apache httpd-vhosts.conf file sending all requests to default vhost

What is wrong here? NameVirtualHost *:80 ServerName domain1.com ServerAdmin membersupport@domain1.com DocumentRoot /var/www/html/domain1-com ServerName domain2.com …
tedneigerux
  • 29
  • 1
  • 7
0
votes
1 answer

How does Apache 2.2 know about my server's second IP, and how can I hide it?

My server has two IP addresses, and I want two Apache services listening to each one separately. The DNS has this: a CNAME alias pointing 'intranet' to servername a Host (A) record pointing servername to IP 1 a Host (A) record pointing 'dev' to IP…
Kev
  • 984
  • 4
  • 23
  • 46
0
votes
2 answers

WAMP different sites on different ports accessible on LAN

I have a small windows server set up on a LAN, with static IP address 192.168.1.100. I have a few other client machines, say 192.168.1.101 - 104. Requirements: Host an apache server (wampserver) on the main server, accessible only on the LAN. Set…
fortuneRice
  • 65
  • 1
  • 7
0
votes
2 answers

Unable to change Apache http server port in unix

I downloaded Apache HTTP server, compiled it and installed it in a unix box. I tried to start my Apache HTTP server in unix but got the below error so I thought of changing the port. (13)Permission denied: make_sock: could not bind to address…
Learner
  • 103
  • 3
0
votes
1 answer

Using same directory declaration for multiple Vhosts

Is there a method for declaring name based virtual hosts, but sharing the same directory declarations? So for example, the Directory section in both of these Vhosts is the same, so is there a method to only declare it once, and have it used by both…
0
votes
3 answers

How to use one httpd.conf for testing and production server?

On my testing server I want to listen to: 127.0.0.1 and on my productaion server I want to listen to: .###.###. I am searching for something like that: Listen 127.0.0.1 There is something like that in apache? Thank you.
Shluch
  • 103
  • 4
0
votes
1 answer

Apache LimitExcept GET to IP address but deny all methods to other IPs

I'm having some trouble with getting the Order directive right in a vhost configuration in Apache. I have some IP addresses that I want to totally deny access to the entire vhost. These have been previously flagged as malicious. I also want to deny…
batfastad
  • 456
  • 1
  • 11
  • 22
0
votes
1 answer

Getting gzip compression to work on my server (modules?)

I have copied the htaccess file from HTML5 Boilerplate into my httpd.conf file and restarted Apache, but for some reason, gzip compression is still not working: I have tested to see if the modules referenced in this boilerplate code are loaded, and…
Oliver Joseph Ash
  • 361
  • 3
  • 5
  • 14
0
votes
2 answers

Using naked domain in apache, no "www" on domain in httpd.conf

Incredibly there is no good tutorial or easy reference guide for using naked domains (no subdomain) as the primary URI online that I could find. I'm trying to configure this to happen in my httpd.conf in apache. Since I'm still a relative newb to…
Chrisdigital
  • 103
  • 1
  • 3
0
votes
1 answer

Installing distcache on CentOS 6.3

I'm trying to re-build our server based on CentOS 6.3 and i can't seem to find the distcache rpm. I have it on my 5.8 CentOS: [root@server]# yum list distcache Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile *…
Kuf
  • 449
  • 2
  • 8
  • 25
0
votes
1 answer

Apache is serving from the first virtualhost for all subdomains and main domain

Objective: To have multiple sub-domains working successfully with a wildcard SSL certificate. The sub domains do not have separate dedicated cpanel account, and hence share the same dedicated IP address(for the main domain) for the SSL. Current…
0
votes
3 answers

httpd 2.4 missing directives

I just setup httpd 2.4 on an Amazone AMI and I noticed in the httpd.conf file there are alot of directives missing compared to a 2.2 conf file. For example: ServerTokens, Timeout, Server Signature, LoadModule are all not present. My question is, if…
CraigH
  • 195
  • 2
  • 7