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

virtual host

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain or it's aliases. ..

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 i have set up and have 2 domains on my server, one of my canīt execute cgi, the other can. I get this in my error.log execCGI is off in this Please..

Virtual host - Redhat 9.0 bin]# start [Sun Aug 17 11:53:43 2003] [warn] module is already added, skipping [Sun Aug 17 11:53:43 2003] [warn] module is already loaded, skipping [Sun Aug 17 11:53:43 2003] [warn]

Virtual Host From PS? - Ok.. so I am running a server with a bunch of virtual hosts.. Someone on one of them is running a PHP script or CGI thats causing problems and im getting huge load spikes and sometimes even crashing the entire server requiring a hard reboot to fix it.. .

Virtual Host problems - I am running Apache 1.3. and Freebsd 5.0. I have 1 IP with 3 virtual host I want to use. Here is the settings for virtual host in my * *>
Next:  debug logging levels for print out entire https p..  
Author Message
user2640

External


Since: Jan 14, 2004
Posts: 4



(Msg. 1) Posted: Wed Jan 14, 2004 1:18 pm
Post subject: virtual host
Archived from groups: alt>apache>configuration (more info?)

Hi,
I'm a newbie on Apache, so I need help for the configuration of Virtual
Hosts.
My english is bad, I'm sorry and I hope you can understand me...

I've seen the documentation and I've tried many times but my configuration
doesn't works...

I've a lots of domains on my webserver, and I'm trying to configure a folder
for each one.
But when I set the virtual hosts no pages works.
With the "normal" configuration I can see my primary web sites and see the
other documents of others domain on thier folder.

THis is my virtual host:


#
#Use name-based virtual hosting.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ServerAdmin domain DeleteThis @simply.it
# DocumentRoot Apache/htdocs/
# ServerName http://www.simply.it:81
#</VirtualHost>
#
#<VirtualHost *>
# ServerAdmin domain DeleteThis @simply.it
# DocumentRoot Apache/htdocs/picturebank
# ServerName http://www.picturebank.it:81
#</VirtualHost>



What can I do???

Thank you

(if you need other sections of my configuration I can write it)...

 >> Stay informed about: virtual host 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Jan 14, 2004 1:19 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

As <as RemoveThis @as.it> wrote:
 > I've a lots of domains on my webserver,

If you've got lot of domains use the mass-definition virtual hosts.

 > THis is my virtual host:
 > # VirtualHost example:

The '#' at the beginning of the lines means that those are COMMENTS.
So they are ignored by Apache.

 > What can I do???

....read better the documentation?

Davide

--
| "Lotus Notes for Dummies" is surely a single page pull out with
| "don't" printed on it. --Unknown<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual host 
Back to top
Login to vote
user2640

External


Since: Jan 14, 2004
Posts: 4



(Msg. 3) Posted: Wed Jan 14, 2004 1:33 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

oK,
I know those are comments.
But when I try the virtual hosts I write without the comments!
I can read the documentation, but It doesn't works!



"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> ha scritto nel messaggio
news:bu327t$d1i29$1@ID-18487.news.uni-berlin.de...
 > As <as.RemoveThis@as.it> wrote:
  > > I've a lots of domains on my webserver,
 >
 > If you've got lot of domains use the mass-definition virtual hosts.
 >
  > > THis is my virtual host:
  > > # VirtualHost example:
 >
 > The '#' at the beginning of the lines means that those are COMMENTS.
 > So they are ignored by Apache.
 >
  > > What can I do???
 >
 > ...read better the documentation?
 >
 > Davide
 >
 > --
 > | "Lotus Notes for Dummies" is surely a single page pull out with
 > | "don't" printed on it. --Unknown<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
patpro1

External


Since: Nov 20, 2003
Posts: 40



(Msg. 4) Posted: Wed Jan 14, 2004 2:06 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <HT7Nb.38902$Jw2.2102@tornado.fastwebnet.it>,
"As" <as.TakeThisOut@as.it> wrote:

 > #<VirtualHost *>
 > # ServerAdmin domain.TakeThisOut@simply.it
 > # DocumentRoot Apache/htdocs/
<font color=purple> > # ServerName <a style='text-decoration: underline;' href="http://www.simply.it:81</font" target="_blank">http://www.simply.it:81</font</a>>
 > #</VirtualHost>
 > #
 > #<VirtualHost *>
 > # ServerAdmin domain.TakeThisOut@simply.it
 > # DocumentRoot Apache/htdocs/picturebank
<font color=purple> > # ServerName <a style='text-decoration: underline;' href="http://www.picturebank.it:81</font" target="_blank">http://www.picturebank.it:81</font</a>>
 > #</VirtualHost>

you might want to try setting DocumentRoot to the full path (for example
/usr/local/www/Apache/htdocs/ or /home/Apache/....)

As Davide said, you should concider the mass virtual hosting feature if
you host more than 20 vhosts, especialy if the number of vhosts will
grow.

patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
user2640

External


Since: Jan 14, 2004
Posts: 4



(Msg. 5) Posted: Wed Jan 14, 2004 2:33 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If I write the full path Apache doesn't start for an error.
In my configuration I write the Ip address and the port.
But If I try the browser tell me that I can't find the page...

Sad((


"patpro" <patpro.RemoveThis@boleskine.patpro.net> ha scritto nel messaggio
news:patpro-66BAEF.11064114012004@news.fu-berlin.de...
 > In article <HT7Nb.38902$Jw2.2102@tornado.fastwebnet.it>,
 > "As" <as.RemoveThis@as.it> wrote:
 >
  > > #<VirtualHost *>
  > > # ServerAdmin domain.RemoveThis@simply.it
  > > # DocumentRoot Apache/htdocs/
<font color=green>  > > # ServerName <a style='text-decoration: underline;' href="http://www.simply.it:81</font" target="_blank">http://www.simply.it:81</font</a>>
  > > #</VirtualHost>
  > > #
  > > #<VirtualHost *>
  > > # ServerAdmin domain.RemoveThis@simply.it
  > > # DocumentRoot Apache/htdocs/picturebank
<font color=green>  > > # ServerName <a style='text-decoration: underline;' href="http://www.picturebank.it:81</font" target="_blank">http://www.picturebank.it:81</font</a>>
  > > #</VirtualHost>
 >
 > you might want to try setting DocumentRoot to the full path (for example
 > /usr/local/www/Apache/htdocs/ or /home/Apache/....)
 >
 > As Davide said, you should concider the mass virtual hosting feature if
 > you host more than 20 vhosts, especialy if the number of vhosts will
 > grow.
 >
 > patpro
 >
 > --
 > je cherche un poste d'admin UNIX/Mac
<font color=purple> > <a style='text-decoration: underline;' href="http://patpro.net/cv.php</font" target="_blank">http://patpro.net/cv.php</font</a>><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
user2640

External


Since: Jan 14, 2004
Posts: 4



(Msg. 6) Posted: Wed Jan 14, 2004 5:09 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A question:
in my httpd.conf I've set my document root as C.\programmi\apache
group\apache\htdocs
But if I set the full path apache doesn't start.
Have I to cancel the section of document root on my httpd.conf and set only
in virtual host section???






"As" <as.RemoveThis@as.it> ha scritto nel messaggio
news:jZ8Nb.39012$Jw2.30234@tornado.fastwebnet.it...
 > If I write the full path Apache doesn't start for an error.
 > In my configuration I write the Ip address and the port.
 > But If I try the browser tell me that I can't find the page...
 >
 > Sad((
 >
 >
 > "patpro" <patpro.RemoveThis@boleskine.patpro.net> ha scritto nel messaggio
 > news:patpro-66BAEF.11064114012004@news.fu-berlin.de...
  > > In article <HT7Nb.38902$Jw2.2102@tornado.fastwebnet.it>,
  > > "As" <as.RemoveThis@as.it> wrote:
  > >
   > > > #<VirtualHost *>
   > > > # ServerAdmin domain.RemoveThis@simply.it
   > > > # DocumentRoot Apache/htdocs/
<font color=brown>   > > > # ServerName <a style='text-decoration: underline;' href="http://www.simply.it:81</font" target="_blank">http://www.simply.it:81</font</a>>
   > > > #</VirtualHost>
   > > > #
   > > > #<VirtualHost *>
   > > > # ServerAdmin domain.RemoveThis@simply.it
   > > > # DocumentRoot Apache/htdocs/picturebank
<font color=brown>   > > > # ServerName <a style='text-decoration: underline;' href="http://www.picturebank.it:81</font" target="_blank">http://www.picturebank.it:81</font</a>>
   > > > #</VirtualHost>
  > >
  > > you might want to try setting DocumentRoot to the full path (for example
  > > /usr/local/www/Apache/htdocs/ or /home/Apache/....)
  > >
  > > As Davide said, you should concider the mass virtual hosting feature if
  > > you host more than 20 vhosts, especialy if the number of vhosts will
  > > grow.
  > >
  > > patpro
  > >
  > > --
  > > je cherche un poste d'admin UNIX/Mac
<font color=green>  > > <a style='text-decoration: underline;' href="http://patpro.net/cv.php</font" target="_blank">http://patpro.net/cv.php</font</a>>
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Wed Jan 14, 2004 5:09 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

As <as DeleteThis @as.it> wrote:
 > But if I set the full path apache doesn't start.

Telling you what? What's the error? What's in the log file?
If you use apachectl configtest what's reported?

 > Have I to cancel the section of document root on my httpd.conf and set only
 > in virtual host section???

It doesn't matter. The 'general' section is used only if Apache
can't find any virtual host, otherwise the VHost is always used.

Note: on windows use forward slashes (/) and not backslashes (\).

Davide

--
| The gates in my computer are AND, OR and NOT; they are not Bill.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
x33159

External


Since: Jan 13, 2004
Posts: 23



(Msg. 8) Posted: Wed Jan 14, 2004 7:33 pm
Post subject: Re: virtual host [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"As" <as.TakeThisOut@as.it> wrote in message
news:dgbNb.39294$Jw2.25980@tornado.fastwebnet.it...
 > A question:
 > in my httpd.conf I've set my document root as C.\programmi\apache
 > group\apache\htdocs
 > But if I set the full path apache doesn't start.
 > Have I to cancel the section of document root on my httpd.conf and set
only
 > in virtual host section???
 >

I hope you made a typo _here_ , and not in your httpd.conf, because C.
should be C:
Maybe it struggles with the space in the root name, would using
"c:\programmi\apache group\apache\htdocs" make it better perhaps ???
As far as I know both / and \ are acceptable on windows (works on my config
anyway)

Side note: in windows I rather have my docroot on a data partition, not in
my program files folder. But in itself
ther should be no different behaviour.

jan<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host 
Back to top
Login to vote
Display posts from previous:   
   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 ]