A
A
Arwel2015-01-02 23:27:11
xampp
Arwel, 2015-01-02 23:27:11

HAMPP - additional domain does not work. How to fix?

Hello.
I'm trying to raise an additional site, only one domain works - the second does not work in www.
Config:
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias ​​in any block.
#
ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\site1\upload"
ServerName demen1.ru
ServerAlias ​​www.domen1.ru
ErrorLog "logs/domen1-error.log"
CustomLog "logs/domen1-access.log" common
ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\domen2\upload"
ServerName domen2.ru
ServerAlias ​​www.domen2.ru
ErrorLog "logs/domen2-error.log"
CustomLog "logs/domen2-access.log" common
Today, 00:58 HAMPP - secondary domain not working [Bookmark] [Floating window] #1 (permalink)
Hello.
I'm trying to raise an additional site, only one domain works - the second does not work in www.
Config:
Click here for full text
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias ​​in any block.
#
ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\site1\upload"
ServerName demen1.ru
ServerAlias ​​www.domen1.ru
ErrorLog "logs/domen1-error.log"
CustomLog "logs/domen1-access.log" common
ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\domen2\upload"
ServerName domen2.ru
ServerAlias ​​www.domen2.ru
ErrorLog "logs/domen2-error.log"
CustomLog "logs/domen2-access.log" common Config
path: apache\conf\extra\httpd-vhosts.conf
What's the problem?
How to raise an additional site?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question