Το πρόβλημα που αντιμετοπίζω με τον Apache Server είναι ότι έχω τρία διαφορετικά sites
(
www.grumman.cywn - torrentz.grumman.cywn - hitradio.grumman.cywn).
Και τα τρία έχουν την ίδια IP διεύθυνση γιατί το Hosting γίνεται στον ίδιο Server.
Προσπαθώ να φτιάξω τον Apache Server να μπορεί να ξεχωρίσει τα site και να "ανοίγει" το κάθε site από το δικό του dir.
Για παράδειγμα μέσα στο htdocs υπάρχουν τρείς φάκελοι, ένας για κάθε domain name.
Έτσι πάω στο config του Apache Server και του δηλώνω να "βλέπει" το αρχείο vhosts.conf.
Παρακάτω υπάρχει το αρχείο vhosts.conf που έχει ο Server μου.
Το πρόβλημα είναι ότι ο Apache Server δεν ξεκινάει, βγάζει σφάλμα.
Όταν του πώ να μη "βλέπει" το αρχείο vhosts.conf από config, παίζει κανονικά και δίχνει τα περιεχόμενα του φακέλου htdocs.
Δεν ξέρω τι να κάνω. . . Έχει κανένας καμία ιδέα?
#
# Virtual Hosts
#
# 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
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# 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 <VirtualHost> block.
NameVirtualHost *80
<VirtualHost torrentz.grumman.cywn>
ServerAdmin forsakis@gmail.com
DocumentRoot C:/Program Files/xampp/htdocs/torrentz
ServerName torrentz.gruman.cywn
ErrorLog C:/Program Files/xampp/apache/logs/error_log
TransferLog C:/Program Files/xampp/apache/logs/access_log
</VirtualHost>