07-01-2003
In your first virtual host, you specify your domain as spetnik.d2g.com. I don't have a way to test this, but to my way of thinking, this would be a host.domain.com. (Your other one works because it is has only a domain - e-feedback.org )
<VirtualHost *:80>
ServerName spetnik.d2g.com
ServerAlias spetnik.d2g.com
www.spetnik.d2g.com
ServerAdmin
aspetner@spetnik.com
DocumentRoot /var/www/spetnik/html/
Part of the documentation states:
Quote:
Many servers want to be accessible by more than one name. This is possible with the ServerAlias directive, placed inside the <VirtualHost> section. For example if you add this to the first <VirtualHost> block above
ServerAlias domain.tld *.domain.tld
then requests for all hosts in the domain.tld domain will be served by the
www.domain.tld virtual host.
Since you probably can't change servername to d2g.com, try the following instead (found in the FAQ section of Apache's documentation):
Quote:
There are two techniques to implement canonical hostnames:
Use mod_rewrite as described in the "Canonical Hostnames" section of the URL Rewriting Guide.
Use name-based virtual hosting:
NameVirtualHost *
<VirtualHost *>
ServerName
www.example.net
ServerAlias example.com
Redirect permanent /
http://www.example.com/
</VirtualHost>
<VirtualHost *>
ServerName
www.example.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>
Worth a shot, anyway.
10 More Discussions You Might Find Interesting
1. Ubuntu
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
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
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
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
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
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
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
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
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
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
disco(1) General Commands Manual disco(1)
NAME
disco - Mono's Web Service Discovery Tool
SYNOPSIS
disco [options] url
DESCRIPTION
disco is a tool for discovering web services and for retireving the documents that describe those services.
url is the location of a DISCO document, which includes a list of WSDL documents, XML schemas and references to other DISCO documents.
disco downloads the DISCO document and all referenced documents (unless the -nosave option is specified), and saves them to disk.
OPTIONS
The following options are available:
-nologo
Supress the startup logo.
-nosave
Do not save the discovered documents to disk. The default is to save the documents.
-o:directory , -out:directory
The directory where to save the discovered documents. By default, documents are saved in the current directory.
-u:username , -user:username
The user name to use when connecting to the server.
-p:password , -password:password
The password to use when connecting to the server.
-d:domain , -domain:domain
The domain to use when connecting to the server.
-proxy:url
The url of the proxy server to use for http requests.
-proxyusername:username
The user name to use when connecting to the proxy.
-proxypassword:password
The password to use when connecting to the proxy.
-proxydomain:domain
The domain to use when connecting to the proxy.
AUTHORS
Lluis Sanchez Gual (lluis@ximian.com)
LICENSE
disco is released under the terms of the GNU GPL.
SEE ALSO
wsdl(1), soapsuds(1), mono(1), mcs(1)
disco(1)