Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

newbie vhost

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Pretty Scripts  
Author Message
spiderxo

External


Since: Nov 04, 2003
Posts: 2



(Msg. 1) Posted: Tue Nov 04, 2003 4:50 pm
Post subject: newbie vhost
Archived from groups: alt>apache>configuration (more info?)

Hi I was wondering if anyone can help me, Im trying to setup virtualhost my
config is

<VirtualHost 192.168.1.2>
DocumentRoot /www/domain1.com
ServerName domain1.com
ErrorLog /www/logs/domain1.com-error_log
CustomLog /www/logs/domain1.com-access_log common
</VirtualHost>
<VirtualHost 192.168.1.2>
DocumentRoot /www/domain2.com
ServerName domain2.com
ErrorLog /www/logs/domain2.com-error_log
CustomLog /www/logs/domain2.com-access_log common
</VirtualHost>
any help would be amazing:)

 >> Stay informed about: newbie vhost 
Back to top
Login to vote
gregmyshoescra

External


Since: Oct 04, 2003
Posts: 22



(Msg. 2) Posted: Tue Nov 04, 2003 11:57 pm
Post subject: Re: newbie vhost [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

spiderx bashed at the keyboard and said :

 > Hi I was wondering if anyone can help me, Im trying to setup
 > virtualhost my config is
 >
 > <VirtualHost 192.168.1.2>
 > DocumentRoot /www/domain1.com
 > ServerName domain1.com
 > ErrorLog /www/logs/domain1.com-error_log
 > CustomLog /www/logs/domain1.com-access_log common
 > </VirtualHost>
 > <VirtualHost 192.168.1.2>
 > DocumentRoot /www/domain2.com
 > ServerName domain2.com
 > ErrorLog /www/logs/domain2.com-error_log
 > CustomLog /www/logs/domain2.com-access_log common
 > </VirtualHost>
 > any help would be amazing:)

At the begining of my cfg file (Global Parameters) I have the entry

NameVirtualHost *

In virtual host area:

<VirtualHost *>
ServerName <a style='text-decoration: underline;' href="http://www.domainname1.com" target="_blank">www.domainname1.com</a>
ServerAdmin admin.RemoveThis@domainname1.com
DocumentRoot "F:/www/domain1/htdocs"
DirectoryIndex index.htm index.html index.html.var
ErrorLog "F:/www/domainname1/logfiles/error.log"
CustomLog F:/www/domainname1/logfiles/access.log combined env=!nolog
SetEnvIf Request_URI "/*.js" nolog
SetEnvIf Request_URI "/*.jpg" nolog
SetEnvIf Request_URI "/*.gif" nolog
SetEnvIf Remote_Addr "IP ADDRESS" nolog
SetEnvIf Remote_Addr "IPADDRESS" nolog
ScriptAlias /cgi-bin/ "F:/www/domainname1/htdocs/cgi-bin/"
</VirtualHost>

<VirtualHost *>
ServerName <a style='text-decoration: underline;' href="http://www.domainname2.com" target="_blank">www.domainname2.com</a>
ServerAdmin admin.RemoveThis@domainname2.com
DocumentRoot "F:/www/domain2/htdocs"
DirectoryIndex index.htm index.html index.html.var
ErrorLog "F:/www/domainname2/logfiles/error.log"
CustomLog F:/www/domainname2/logfiles/access.log combined env=!nolog
SetEnvIf Request_URI "/*.js" nolog
SetEnvIf Request_URI "/*.jpg" nolog
SetEnvIf Request_URI "/*.gif" nolog
SetEnvIf Remote_Addr "IP ADDRESS" nolog
SetEnvIf Remote_Addr "IPADDRESS" nolog
ScriptAlias /cgi-bin/ "F:/www/domainname2/htdocs/cgi-bin/"
</VirtualHost>

HTH
--
Mcploppy ©

{ Remove both MyShoes to email me }
{ Homepage: <a style='text-decoration: underline;' href="http://tinyurl.com/bbel" target="_blank">http://tinyurl.com/bbel</a> }
{ My Alternative Site: <a style='text-decoration: underline;' href="http://tinyurl.com/rynb" target="_blank">http://tinyurl.com/rynb</a> }<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: newbie vhost 
Back to top
Login to vote
bbrunekreeft

External


Since: Aug 17, 2003
Posts: 2



(Msg. 3) Posted: Wed Nov 05, 2003 1:00 am
Post subject: Re: newbie vhost [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"spiderx" <spiderxo RemoveThis @msn.com> wrote in message
news:xjUpb.11004$f7.586962@localhost...
 > Hi I was wondering if anyone can help me, Im trying to setup virtualhost
my
 > config is
 >
 > <VirtualHost 192.168.1.2>
 > DocumentRoot /www/domain1.com
 > ServerName domain1.com
 > ErrorLog /www/logs/domain1.com-error_log
 > CustomLog /www/logs/domain1.com-access_log common
 > </VirtualHost>
 > <VirtualHost 192.168.1.2>
 > DocumentRoot /www/domain2.com
 > ServerName domain2.com
 > ErrorLog /www/logs/domain2.com-error_log
 > CustomLog /www/logs/domain2.com-access_log common
 > </VirtualHost>
 > any help would be amazing:)
 >


What exactly is your problem?

Bert<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie vhost 
Back to top
Login to vote
spiderxo

External


Since: Nov 04, 2003
Posts: 2



(Msg. 4) Posted: Wed Nov 05, 2003 3:49 pm
Post subject: Re: newbie vhost [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Bert Brunekreeft" <BBrunekreeft.DeleteThis@Hotmail.com> wrote in message
news:3fa813bb$0$134$e4fe514c@dreader6.news.xs4all.nl...
 > "spiderx" <spiderxo.DeleteThis@msn.com> wrote in message
 > news:xjUpb.11004$f7.586962@localhost...
  > > Hi I was wondering if anyone can help me, Im trying to setup virtualhost
 > my
  > > config is
  > >
  > > <VirtualHost 192.168.1.2>
  > > DocumentRoot /www/domain1.com
  > > ServerName domain1.com
  > > ErrorLog /www/logs/domain1.com-error_log
  > > CustomLog /www/logs/domain1.com-access_log common
  > > </VirtualHost>
  > > <VirtualHost 192.168.1.2>
  > > DocumentRoot /www/domain2.com
  > > ServerName domain2.com
  > > ErrorLog /www/logs/domain2.com-error_log
  > > CustomLog /www/logs/domain2.com-access_log common
  > > </VirtualHost>
  > > any help would be amazing:)
  > >
 >
 >
 > What exactly is your problem?
 >
 > Bert
 >
 >
I got the VirtualHost working but now when I use php on one of the hosts the
pages are white

any ideas<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie vhost 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
CGI vhost - Greetings, I am trying to set up a vhost that will automatically execute a cgi binary and I'm not too sure how to go about it. If I go to the address and add /cgi-bin/<file_name> it works fine, so I know cgi is configured correctly. Also my name...

vHost Configuration per DB? - Is tat possible? I mean a dynamic Virtual Host, that gets its data (docroot, user, group, serveradmin) from a mysql DB, depending on the requested hostname... This would be GREAT for MASS Hosting... My Apache is very fat and slow with 500 Virtual..

vhost in apache2 - Hi, following is a total mess for me, I hope it's not for you !! Environment : RH9 Apache2 (came with the distro) I installed RH as a web server with everything suggested plus SSL. THe firewall is set to medium security. I want to configure the server...

Proxy Only VHost - Is it possible to setup a proxy only virtualhost? As in no reponse if the request is not a proxy request from a host in the 'ACL'. Thanks

Mystery vhost - The hosting provider set up the initial IP host name headers, but there is no vhosts file associated with it! I am completely puzzled where this was configured... it's not in any of the apache conf files. Where might this be? I'm trying to set up my...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]