Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Apache httpd.conf <VirtualHost> issue Post 37869 by Spetnik on Tuesday 1st of July 2003 11:35:09 AM
Old 07-01-2003
Apache httpd.conf <VirtualHost> issue

I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues?

Code:
NameVirtualHost *:80

#Default catch all 
<VirtualHost *:80>
    ServerAdmin aspetner@spetnik.com
    DocumentRoot /var/www/html/
    ErrorDocument 404 /errors/notfound.html
</VirtualHost>

#spetnik.d2g.com
<VirtualHost *:80>
    ServerName spetnik.d2g.com
    ServerAlias spetnik.d2g.com www.spetnik.d2g.com
    ServerAdmin aspetner@spetnik.com
    DocumentRoot /var/www/spetnik/html/
    ErrorDocument 404 /errors/notfound.html
    TransferLog logs/spetnik

    <Directory /var/www/spetnik/html>
        AllowOverride All
    </Directory>
</VirtualHost>

#e-feedback.org
<VirtualHost *:80>
    ServerName e-feedback.org
    ServerAlias e-feedback.org www.e-feedback.org
    ServerAdmin e-feedback@spetnik.com
    DocumentRoot /var/www/e-feedback/html
    ErrorDocument 404 /errors/notfound.html
    TransferLog logs/e-feedback

    <Directory /var/www/e-feedback/html>
        AllowOverride All
    </Directory>
</VirtualHost>

Thanks,
Aaron
 

10 More Discussions You Might Find Interesting

1. Ubuntu

Apache 2 httpd.conf empty

Hi everybody, I have installed Apache 2 + Tomcat 5.5. on Ubuntu 7.04 and the default httpd.conf is empty (0 lines), however there is a file called apache2.conf that looks like a default httpd.conf. I didn't use Apache in ages, since 1.3.x release, but I remember that the httpd.conf by default... (2 Replies)
Discussion started by: sspirito
2 Replies

2. Web Development

Apache: Forward Proxy Via Virtualhost

I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Discussion started by: krunksta
2 Replies

3. Web Development

Apache virtualhost dinternal domain

Hello, I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
Discussion started by: kreno
1 Replies

4. Web Development

servername in apache httpd.conf

I'd like to know if servername in apache httpd.conf is the machine name or domain name. If it is domain name like example.com, should it be registered before in use? (1 Reply)
Discussion started by: yzhang738
1 Replies

5. Red Hat

apache 2.2 httpd.conf

Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny. So I have base rule that denies all php files server-wide: order allow,deny ... (0 Replies)
Discussion started by: Lobster
0 Replies

6. Red Hat

apache 2.2 httpd.conf

Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny: <Files ~ "\.(php|php3)$"> order allow,deny deny from all </Files> I... (0 Replies)
Discussion started by: Lobster
0 Replies

7. UNIX for Dummies Questions & Answers

Locate which httpd.conf is used by Apache

What is the command to see what httpd.conf file is apache using. Apache is started. (1 Reply)
Discussion started by: galford
1 Replies

8. Red Hat

apache httpd virtual hosts setup keep hitting the same VirtualHost

I'm trying to set up two virtual hosts. Here's my httpd config: <Directory /Users/userX/dev/sandbox-2> Order deny,allow deny from All Allow from localhost </Directory> NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot "/Users/userX/dev/sandbox-2" ... (0 Replies)
Discussion started by: GlideK
0 Replies

9. Linux

Apache/2.2.25 VirtualHost not working

I am having problems in implementing the virtual hosts here in my server. I have this one cloud dev server: Amazon Linux AMI release 2013.03 (based on RHEL like CentOS) with Apache 2.2.25 installed and I'm trying to create 2 virtual hosts: test-kalc.tk and test2-kalc.tk. If I go to... (2 Replies)
Discussion started by: jpdoria
2 Replies

10. Shell Programming and Scripting

Search and comment block of text from apache httpd.conf

I want to search for a block of text in httpd.conf that between two strings and comment it. There are multiple blocks with "<Directory.. and </Directory>" <Directory "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/htdocs"> # # Possible values for the Options directive are... (3 Replies)
Discussion started by: kchinnam
3 Replies
Perlanet::Trait::YAMLConfig(3pm)			User Contributed Perl Documentation			  Perlanet::Trait::YAMLConfig(3pm)

NAME
Perlanet::Trait::YAMLConfig - configure Perlanet through a YAML configuration file SYNOPSIS
package MyPerlanet; extends 'Perlanet'; with 'Perlanet::Traits::YAMLConfig'; my $perlanet = MyPerlanet->new_with_config( configfile => 'whatever.yml' ); $perlanet->run; DESCRIPTION
Allows you to move the configuration of Perlanet to an external YAML configuration file. Example Configuration File title: planet test description: A Test Planet url: http://planet.example.com/ author: name: Dave Cross email: dave@dave.org.uk entries: 20 opml: opml.xml page: file: index.html template: index.tt feed: file: atom.xml format: Atom cache_dir: /tmp/feeds feeds: - url: http://blog.dave.org.uk/atom.xml title: Dave's Blog web: http://blog.dave.org.uk/ - url: http://use.perl.org/~davorg/journal/rss title: Dave's use.perl Journal web: http://use.perl.org/~davorg/journal/ - url: http://www.oreillynet.com/pub/feed/31?au=2607 title: Dave on O'Reillynet web: http://www.oreillynet.com/pub/au/2607 METHODS
THIRTY_DAYS The default length of caching, if caching options are present in the configuration get_config_from_file Extracts the configuration from a YAML file AUTHOR
Oliver Charles, <oliver.g.charles@googlemail.com> COPYRIGHT AND LICENSE
Copyright (c) 2010 by Magnum Solutions Ltd. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2012-03-17 Perlanet::Trait::YAMLConfig(3pm)
All times are GMT -4. The time now is 05:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy