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

apache 2.0 - cant get vhosts to work

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache 2.0.50, Windows XP Pro, FrontPage 2000 Ser..  
Author Message
notvalid

External


Since: Jul 15, 2004
Posts: 33



(Msg. 1) Posted: Thu Jul 15, 2004 8:21 am
Post subject: apache 2.0 - cant get vhosts to work
Archived from groups: alt>apache>configuration (more info?)

I just installed mandrake 9.2, i was running 9.0 and using apache 1.3.27
I backed up all the files and reformatted the drive to mdk 9.2
Now I'm configuring the apache 2.0.47 stuff it installed.

I used the original httpd.conf vhost.conf and commonhtpd.conf files as
a guide to edit the new apache 2.0 files of the smae name
(whats that httpd2.conf?, how many config files do they need anyway???)

I have 2 problems, i cant get cgi to work at all
i have ssIncludes in my main page <!--#exec cgi="cgi-bin/counter.cgi" -->
but it is just ignored.

My main site comes up ok(but no cgi of course due to the above problem)
i have 3 virtualhosts "namevirtualhost" and any access to those gives
me
Forbidden
you dont have permission to access / on this server

The perms for the dirs there are drwxr-xr-x
the index.html file is -rwxr-xr-x
all files and dirs there are owned apache:apache

This all worked great under mdk 9.0 and apache 1.13.27

What am i missing?
Thanks
Eric

Sample vhost
NameVirtualHost 192.168.1.5

<VirtualHost 192.168.1.5>
ServerName aWebSite.homeip.net here (a dyndns entry provides the dns)
DirectoryIndex index.html
DocumentRoot /var/vhosts/www1/html
CustomLog logs/access1_log combined env=!dontlog
ErrorLog logs/error1_log
</VirtualHost>

 >> Stay informed about: apache 2.0 - cant get vhosts to work 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Jul 15, 2004 9:59 am
Post subject: Re: apache 2.0 - cant get vhosts to work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Eric <notValid.DeleteThis@comcast.net> wrote:
 > a guide to edit the new apache 2.0 files of the smae name
 > (whats that httpd2.conf?, how many config files do they need anyway???)

Just one. If you want to separate the stuff in different config files
to keep them specific is your choice.

 > i have ssIncludes in my main page <!--#exec cgi="cgi-bin/counter.cgi" -->
 > but it is just ignored.

I think that your Apache have ssi turned off.

 > i have 3 virtualhosts "namevirtualhost" and any access to those gives
 > me Forbidden you dont have permission to access / on this server

It sound like a problem in permissions and/or which 'index' file he is
trying to access.

 > DocumentRoot /var/vhosts/www1/html

You should have a <Directory /var/vhosts...> block here, detailing
the options.

Davide

--
| Tact is the ability to tell a man he has an open mind when he has a
| hole in his head.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: apache 2.0 - cant get vhosts to work 
Back to top
Login to vote
notvalid

External


Since: Jul 15, 2004
Posts: 33



(Msg. 3) Posted: Thu Jul 15, 2004 10:49 am
Post subject: Re: apache 2.0 - cant get vhosts to work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > Eric <notValid.RemoveThis@comcast.net> wrote:
  >> a guide to edit the new apache 2.0 files of the smae name
  >> (whats that httpd2.conf?, how many config files do they need anyway???)
 >
 > Just one. If you want to separate the stuff in different config files
 > to keep them specific is your choice.
 >
  >> i have ssIncludes in my main page <!--#exec cgi="cgi-bin/counter.cgi" -->
  >> but it is just ignored.
 >
 > I think that your Apache have ssi turned off.

There! you are right, i missed the Options +Includes
Now cgi is working
 >
  >> i have 3 virtualhosts "namevirtualhost" and any access to those gives
  >> me Forbidden you dont have permission to access / on this server
 >
 > It sound like a problem in permissions and/or which 'index' file he is
 > trying to access.
 >
  >> DocumentRoot /var/vhosts/www1/html
 >
 > You should have a <Directory /var/vhosts...> block here, detailing
 > the options.
 >
 > Davide
 >
There are none, the vhost is just a small redirect page
one file: /var/vhosts/www1/html/index.html that just has a clickable
link to take you to the main site.
So my vhosts.conf looks like this:

NameVirtualHost 192.168.1.5

<VirtualHost 192.168.1.5>
ServerName Redirector.homeip.net
DirectoryIndex index.html
DocumentRoot /var/vhosts/www1/html
CustomLog logs/access1_log combined env=!dontlog
ErrorLog logs/error1_log
</VirtualHost>

Why cant i get permission to load the index.html file?

Also, under 1.3.27 i could serve html pages that were located in cgi-bin
Can you not do that under 2.0?
If not i can move them but I dont want to unless it is no longer supported

Thanks
Eric<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: apache 2.0 - cant get vhosts to work 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Thu Jul 15, 2004 10:54 am
Post subject: Re: apache 2.0 - cant get vhosts to work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Eric <notValid.DeleteThis@comcast.net> wrote:
 > There are none, the vhost is just a small redirect page

Then why don't you just use
RedirectPermanent ...wherevereyouwant
in the <VirtualHost> block?

 > Also, under 1.3.27 i could serve html pages that were located in cgi-bin
 > Can you not do that under 2.0?

?what's the sense of having html pages in cgi-bin? by definition,
everything in cgi-bin has to be a cgi. So, not served but executed.

Davide

--
| Egotist, n.: A person of low taste, more interested in himself than
| me.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: apache 2.0 - cant get vhosts to work 
Back to top
Login to vote
notvalid

External


Since: Jul 15, 2004
Posts: 33



(Msg. 5) Posted: Thu Jul 15, 2004 11:08 am
Post subject: Re: apache 2.0 - cant get vhosts to work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > Eric <notValid DeleteThis @comcast.net> wrote:
  >> There are none, the vhost is just a small redirect page
 >
 > Then why don't you just use
 > RedirectPermanent ...wherevereyouwant
 > in the <VirtualHost> block?
 >
  >> Also, under 1.3.27 i could serve html pages that were located in cgi-bin
  >> Can you not do that under 2.0?
 >
 > ?what's the sense of having html pages in cgi-bin? by definition,
 > everything in cgi-bin has to be a cgi. So, not served but executed.
 >
 > Davide
 >
It was a handy place for guestbook data etc. The html that is
served out of cgi-bin is only served to my local intranet and is
never served to the public. so it kind of made sense to stick it
there where it was clearly separated from the rest of the sites pages.
Eric<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: apache 2.0 - cant get vhosts to work 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache SSL with vhosts - I posted earlier here with some wrong details.... about my questions (old link below). If I have apache on a machine. 1 ip address. multiple virtual hosts. Can I add multiple SSL certificates to each virtual host when they are name based and not ip..

Apache/mod_ssl and Name Based VHosts - I'm curious, is this something that is not recommended? or something that isn't supposed to be possible? (As far as I now, through logs and such, my name based vhosts are working fine.)

Logging large scale apache 2.0 server with MANY vhosts - Hi All, I'm currently setting up a new server to handle a large number of VHOSTs. We are trying to use dynamically assigned section for vhosts. The dynamic section is working fine, all nice and peachy. Logging however is the problem. The docs state....

Trying to get php and apache to work together - Using php 4.3.x and apache (both 1.3.x and 2). I am trying to get them built on Linux. Have followed the very good site of dan.drydog.com/apache2php.html and have been able to build both apaches with no errors. Can start apache and have no errors and....

website does not work under apache ssl - Dear all, I wrote a php-site to set up a vacation note under linux using procmail mechanism. This website is written in php4 and uses session-cookies in the very easiest manner. I programmed it under Debian Linux 3.0 sid (unstable) with apache 1.3.xx....
   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 ]