| View previous topic :: View next topic |
| Author |
Message |
Gaurav Guest
|
Posted: Sat Feb 16, 2008 9:15 am Post subject: Trouble with vhosts.conf |
|
|
Hi,
I have vhosts turned on in httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
In httpd-vhosts.com, I have following entries.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin nospam@yahoo.com
DocumentRoot "C:/Programs/apache/httpserver/htdocs"
ServerName something.dnsalias.com
ServerAlias something.dnsalias.com
ErrorLog logs/something.dnsalias.-error_log
CustomLog logs/something.dnsalias.com.-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin nospam@gmail.com
DocumentRoot C:/Programs/apache/httpserver/htdocs/someotherdir
ServerName www.someotherdir.org
ErrorLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-error_log
CustomLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-access_log common
<Directory c:/Programs/apache/httpserver/htdocs/someotherdir/>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
As soon as I turn on the vhosts, the server doesn't start. What am I
doing wrong?
Thanks,
Gaurav |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
Kees Nuyt Guest
|
Posted: Sat Feb 16, 2008 7:53 pm Post subject: Re: Trouble with vhosts.conf |
|
|
On Sat, 16 Feb 2008 01:15:10 -0800 (PST), Gaurav
<gauravc@gmail.com> wrote:
| Quote: |
Hi,
I have vhosts turned on in httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
In httpd-vhosts.com, I have following entries.
NameVirtualHost *:80
VirtualHost *:80
ServerAdmin nospam@yahoo.com
DocumentRoot "C:/Programs/apache/httpserver/htdocs"
ServerName something.dnsalias.com
ServerAlias something.dnsalias.com
ErrorLog logs/something.dnsalias.-error_log
CustomLog logs/something.dnsalias.com.-access_log common
/VirtualHost
VirtualHost *:80
ServerAdmin nospam@gmail.com
DocumentRoot C:/Programs/apache/httpserver/htdocs/someotherdir
ServerName www.someotherdir.org
ErrorLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-error_log
CustomLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-access_log common
Directory c:/Programs/apache/httpserver/htdocs/someotherdir/
AllowOverride All
Order Allow,Deny
Allow from All
/Directory
/VirtualHost
As soon as I turn on the vhosts, the server doesn't start. What am I
doing wrong?
Thanks,
Gaurav
|
CD to your serverroot, then execute bin\httpd.exe or
bin\apache.exe (name depends on distribution and version)
with the -t parameter to verify httpd.conf.
httpd.exe -h shows all commandline options, there are a
few more the do some verification.
If httpd.conf is Ok, look in your logs/errorlog for any
startup messages.
--
( Kees
)
c[_] I drink to make other people interesting. (#121) |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
Gaurav Guest
|
Posted: Sun Feb 17, 2008 8:54 am Post subject: Re: Trouble with vhosts.conf |
|
|
Kees,
Thanks for the suggestion. I was able to figure out why the server was
not starting. The error and access logs for the vhosts was in a non-
existent directory. Creating that directory fixed that problem.
-g
On Feb 16, 5:53 am, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
| Quote: |
On Sat, 16 Feb 2008 01:15:10 -0800 (PST), Gaurav
gaur...@gmail.com> wrote:
Hi,
I have vhosts turned on in httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
In httpd-vhosts.com, I have following entries.
NameVirtualHost *:80
VirtualHost *:80
ServerAdmin nos...@yahoo.com
DocumentRoot "C:/Programs/apache/httpserver/htdocs"
ServerName something.dnsalias.com
ServerAlias something.dnsalias.com
ErrorLog logs/something.dnsalias.-error_log
CustomLog logs/something.dnsalias.com.-access_log common
/VirtualHost
VirtualHost *:80
ServerAdmin nos...@gmail.com
DocumentRoot C:/Programs/apache/httpserver/htdocs/someotherdir
ServerNamewww.someotherdir.org
ErrorLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-error_log
CustomLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
jivanrashmi.org-access_log common
Directory c:/Programs/apache/httpserver/htdocs/someotherdir/
AllowOverride All
Order Allow,Deny
Allow from All
/Directory
/VirtualHost
As soon as I turn on the vhosts, the server doesn't start. What am I
doing wrong?
Thanks,
Gaurav
CD to your serverroot, then execute bin\httpd.exe or
bin\apache.exe (name depends on distribution and version)
with the -t parameter to verify httpd.conf.
httpd.exe -h shows all commandline options, there are a
few more the do some verification.
If httpd.conf is Ok, look in your logs/errorlog for any
startup messages.
--
( Kees
)
c[_] I drink to make other people interesting. (#121) |
|
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|

80 Attacks blocked
Powered by phpBB © 2001, 2005 phpBB Group
|