0piate
12-05-2000, 03:27 AM
What do I need to setup the document root as?
Im running linux and its set so when I create an acct, they are /home/user/www/cgi-bin
it says to set it up as
DocumentRoot /www/docs/host.some_domain.com
Right now ive got it setup so that when I create an accout, it sets up a www and www/cgi-bin dir in their home account. So they have /home/blah/www/cgi-bin
Do I need to setup the doc root as /home/blah/www/foo.domain.com ?
If so, that doesnt seem to be working.
Last thing, above it sets up the virtual cgi-bin dir. Do I need to set one up in this?
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
Would I need todo something like /cgi-bin/ "/home/blah/www/cgi-bin/"
?
This is how it says to setup virtuals in my httpd.conf file.
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
#
#NameVirtualHost 12.34.56.78:80
#NameVirtualHost 12.34.56.78
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
#<VirtualHost ip.address.of.host.some_domain.com>
# ServerAdmin webmaster@host.some_domain.com
# DocumentRoot /www/docs/host.some_domain.com
# ServerName host.some_domain.com
# ErrorLog logs/host.some_domain.com-error_log
# CustomLog logs/host.some_domain.com-access_log common
#</VirtualHost>
#<VirtualHost _default_:*>
#</VirtualHost>
NameVirtualHost 209.145.148.54
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
<VirtualHost 209.145.148.54>
ServerAdmin webmaster@mlr.cdgaming.com
DocumentRoot /www/docs/mlr.cdgaming.com
ServerName mlr.cdgaming.com
ErrorLog logs/mlr.cdgaming.com-error_log
CustomLog logs/mlr.cdgaming.com-access_log common
</VirtualHost>
<VirtualHost _default_:*>
</VirtualHost>
I also tried commenting out the
NameVirtualHost 209.145.148.54
line and also tried with
NameVirtualHost 209.145.148.54:80
NameVirtualHost 209.145.148.54
Know what im doing wrong?
------------------
Im running linux and its set so when I create an acct, they are /home/user/www/cgi-bin
it says to set it up as
DocumentRoot /www/docs/host.some_domain.com
Right now ive got it setup so that when I create an accout, it sets up a www and www/cgi-bin dir in their home account. So they have /home/blah/www/cgi-bin
Do I need to setup the doc root as /home/blah/www/foo.domain.com ?
If so, that doesnt seem to be working.
Last thing, above it sets up the virtual cgi-bin dir. Do I need to set one up in this?
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
Would I need todo something like /cgi-bin/ "/home/blah/www/cgi-bin/"
?
This is how it says to setup virtuals in my httpd.conf file.
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
#
#NameVirtualHost 12.34.56.78:80
#NameVirtualHost 12.34.56.78
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
#<VirtualHost ip.address.of.host.some_domain.com>
# ServerAdmin webmaster@host.some_domain.com
# DocumentRoot /www/docs/host.some_domain.com
# ServerName host.some_domain.com
# ErrorLog logs/host.some_domain.com-error_log
# CustomLog logs/host.some_domain.com-access_log common
#</VirtualHost>
#<VirtualHost _default_:*>
#</VirtualHost>
NameVirtualHost 209.145.148.54
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
<VirtualHost 209.145.148.54>
ServerAdmin webmaster@mlr.cdgaming.com
DocumentRoot /www/docs/mlr.cdgaming.com
ServerName mlr.cdgaming.com
ErrorLog logs/mlr.cdgaming.com-error_log
CustomLog logs/mlr.cdgaming.com-access_log common
</VirtualHost>
<VirtualHost _default_:*>
</VirtualHost>
I also tried commenting out the
NameVirtualHost 209.145.148.54
line and also tried with
NameVirtualHost 209.145.148.54:80
NameVirtualHost 209.145.148.54
Know what im doing wrong?
------------------