VirtualHost issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

VirtualHost issues

superdave-2
Hello,
I am a newbie with Bugzilla. I have it working great, except I want to
run it in a virtual hosts fashion. I have tried many possibilities in
my httpd.conf file, and cannot find any combination that works. The
results: when I go to the page (http://bugzilla.domain.com), I get a
plain-text version of the site. It's all very functional, but no
graphics or colors are involved. Without using virtual hosts, the
graphics/colors are working.

Here is my httpd.conf file, currently:

AddHandler cgi-script .cgi
NameVirtualHost 10.10.12.29
<VirtualHost 10.10.12.29>
        ServerName bugzilla.domain.com
        ServerAlias bugzilla
        DocumentRoot /usr/share/bugzilla/web
        <Directory /usr/share/bugzilla/web>
        Options -Indexes +FollowSymLinks
          AllowOverride All
          Order allow,deny
          Allow from all
      </Directory>
        ScriptAlias /cgi-bin/bugzilla/ /usr/lib/cgi-bin/bugzilla/
        ScriptAlias / /usr/lib/cgi-bin/bugzilla/
      <Directory /usr/lib/cgi-bin/*>
          AllowOverride Limit
          Options +ExecCGI
          Order allow,deny
          Allow from all
      </Directory>
      <Directory /usr/share/bugzilla/web>
          Options -Indexes +FollowSymLinks
          AllowOverride AuthConfig
          Order allow,deny
          Allow from all
      </Directory>
</VirtualHost>

This is running on Apache2 v2.0.54, with mySql v4.0.24 and PHP
v.4.3.10-16. I used the version of Bugzilla that apt-get brought me
(yes, using Debian). I have a limited knowledge of how the httpd.conf
file works, but I believe that it is assigning permissions, etc. based
on the <Directory> sections I set up. All I know is, I have exhausted
google looking for ideas.

Installed using apt-get defaults, Bugzilla exists in the following
locations:
/var/www/bugzilla: just a symlink to /usr/share/bugzilla/web
/var/www/bugzilla_graphs: another link, to ../lib/bugzilla/graphs
/usr/lib/cgi-bin/bugzilla: all cgi stuff

Does anyone know what I am missing here? I don't really want to move a
bunch of files around, as I'm not sure I would have the knowledge to
re-link them all. Any ideas would be helpful, though!

TIA, Dave

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: VirtualHost issues

Thorsten Schöning
Hallo superdave superdave,
Tuesday, August 22, 2006, 5:39:05 AM, haben Sie folgendes geschrieben:

> AddHandler cgi-script .cgi
> NameVirtualHost 10.10.12.29
> <VirtualHost 10.10.12.29>
>         ServerName      bugzilla.domain.com
>         ServerAlias     bugzilla
>         DocumentRoot    /usr/share/bugzilla/web
>         <Directory /usr/share/bugzilla/web>
>                 Options -Indexes +FollowSymLinks
>                 AllowOverride All
>                 Order allow,deny
>                 Allow from all
>         </Directory>
>         ScriptAlias     /cgi-bin/bugzilla/ /usr/lib/cgi-bin/bugzilla/
>         ScriptAlias     / /usr/lib/cgi-bin/bugzilla/
>         <Directory /usr/lib/cgi-bin/*>
>                 AllowOverride Limit
>                 Options +ExecCGI
>                 Order allow,deny
>                 Allow from all
>         </Directory>
>         <Directory /usr/share/bugzilla/web>
>                 Options -Indexes +FollowSymLinks
>                 AllowOverride AuthConfig
>                 Order allow,deny
>                 Allow from all
>         </Directory>
> </VirtualHost>

<VirtualHost *:80>
 ServerAdmin
 DocumentRoot "D:/Programme/Apache Software Foundation/Apache2.2/htdocs/Bugzilla"
 ServerName bugzilla.domain.de
 ErrorLog ...
 CustomLog ...
 <Directory "D:/Programme/Apache Software Foundation/Apache2.2/htdocs/Bugzilla">
  ScriptInterpreterSource Registry
  AddHandler cgi-script .cgi
  Options +Indexes +ExecCGI
  DirectoryIndex index.cgi
  AllowOverride Limit
 </Directory>
</VirtualHost>

This configuration works under Windows, it may help you. Seems to me
you missed somethine to dell apache that index.cgi should be executed.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
eMail [hidden email]
 
Telefon Potsdam...0331-743881-0
Telefon Mobil.....0178-8 9468-04

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: VirtualHost issues

Michael Bellomo
In reply to this post by superdave-2
I use the same technique for apache.  We use  http://bugs.domain.com for
our bugzilla.

My setup:
/var/www/html/bugs -> symlink to where bugzilla actually is.

My httpd.conf isn't nearly as complicated as yours.  Here's the relavant
portions of mine, hope it helps.
<VirtualHost *:80>
    DocumentRoot /var/www/html/bugs
    ServerName bugs.domain.com
</VirtualHost>
<Directory "/var/www/html/bugs">
    DirectoryIndex index.html index.php index.cgi
    Options +ExecCGI +FollowSymLinks
    AllowOverride Limit
    Order allow,deny
    Allow from all
</Directory>

    -Michael



superdave wrote:

> Hello,
> I am a newbie with Bugzilla. I have it working great, except I want to
> run it in a virtual hosts fashion. I have tried many possibilities in
> my httpd.conf file, and cannot find any combination that works. The
> results: when I go to the page (http://bugzilla.domain.com), I get a
> plain-text version of the site. It's all very functional, but no
> graphics or colors are involved. Without using virtual hosts, the
> graphics/colors are working.
>
> Here is my httpd.conf file, currently:
>
> AddHandler cgi-script .cgi
> NameVirtualHost 10.10.12.29
> <VirtualHost 10.10.12.29>
> ServerName bugzilla.domain.com
> ServerAlias bugzilla
> DocumentRoot /usr/share/bugzilla/web
> <Directory /usr/share/bugzilla/web>
>         Options -Indexes +FollowSymLinks
>           AllowOverride All
>           Order allow,deny
>           Allow from all
>       </Directory>
> ScriptAlias /cgi-bin/bugzilla/ /usr/lib/cgi-bin/bugzilla/
> ScriptAlias / /usr/lib/cgi-bin/bugzilla/
>       <Directory /usr/lib/cgi-bin/*>
>           AllowOverride Limit
>           Options +ExecCGI
>           Order allow,deny
>           Allow from all
>       </Directory>
>       <Directory /usr/share/bugzilla/web>
>           Options -Indexes +FollowSymLinks
>           AllowOverride AuthConfig
>           Order allow,deny
>           Allow from all
>       </Directory>
> </VirtualHost>
>
> This is running on Apache2 v2.0.54, with mySql v4.0.24 and PHP
> v.4.3.10-16. I used the version of Bugzilla that apt-get brought me
> (yes, using Debian). I have a limited knowledge of how the httpd.conf
> file works, but I believe that it is assigning permissions, etc. based
> on the <Directory> sections I set up. All I know is, I have exhausted
> google looking for ideas.
>
> Installed using apt-get defaults, Bugzilla exists in the following
> locations:
> /var/www/bugzilla: just a symlink to /usr/share/bugzilla/web
> /var/www/bugzilla_graphs: another link, to ../lib/bugzilla/graphs
> /usr/lib/cgi-bin/bugzilla: all cgi stuff
>
> Does anyone know what I am missing here? I don't really want to move a
> bunch of files around, as I'm not sure I would have the knowledge to
> re-link them all. Any ideas would be helpful, though!
>
> TIA, Dave
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put [hidden email] in the To: field when you reply.
> .
>
>  
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

RE: VirtualHost issues

Benton, Kevin
In reply to this post by superdave-2
Hello Dave,

> I am a newbie with Bugzilla. I have it working great, except I want to
> run it in a virtual hosts fashion. I have tried many possibilities in
> my httpd.conf file, and cannot find any combination that works. The
> results: when I go to the page (http://bugzilla.domain.com), I get a
> plain-text version of the site. It's all very functional, but no
> graphics or colors are involved. Without using virtual hosts, the
> graphics/colors are working.

It sounds like your problem lies in the way the CSS files are being
referenced.  My guess is your HTML is not hitting the virtual host for
them or your ScriptAlias directive is overly broad and includes your css
directories.  You might want to check your Apache logs to see what
happens when you go to any of your Bugzilla pages.  If you view source,
when looking at one of the pages, that may also reveal the problem(s).

Also, you're probably going to want to move your AddHandler inside the
VirtualHost directive for bugzilla.trulycrazy.com.

> Here is my httpd.conf file, currently:
>
> AddHandler cgi-script .cgi
> NameVirtualHost 10.10.12.29
> <VirtualHost 10.10.12.29>
> ServerName bugzilla.domain.com
> ServerAlias bugzilla
> DocumentRoot /usr/share/bugzilla/web
> <Directory /usr/share/bugzilla/web>
>         Options -Indexes +FollowSymLinks
>           AllowOverride All
>           Order allow,deny
>           Allow from all
>       </Directory>
> ScriptAlias /cgi-bin/bugzilla/ /usr/lib/cgi-bin/bugzilla/
> ScriptAlias / /usr/lib/cgi-bin/bugzilla/
>       <Directory /usr/lib/cgi-bin/*>
>           AllowOverride Limit
>           Options +ExecCGI
>           Order allow,deny
>           Allow from all
>       </Directory>
>       <Directory /usr/share/bugzilla/web>
>           Options -Indexes +FollowSymLinks
>           AllowOverride AuthConfig
>           Order allow,deny
>           Allow from all
>       </Directory>
> </VirtualHost>
>
> This is running on Apache2 v2.0.54, with mySql v4.0.24 and PHP
> v.4.3.10-16. I used the version of Bugzilla that apt-get brought me

Bugzilla uses Perl rather than PHP...  This is one of the benefits of
installing from source - you get to know the application much better. :)

> (yes, using Debian). I have a limited knowledge of how the httpd.conf
> file works, but I believe that it is assigning permissions, etc. based
> on the <Directory> sections I set up. All I know is, I have exhausted
> google looking for ideas.
>
> Installed using apt-get defaults, Bugzilla exists in the following
> locations:
> /var/www/bugzilla: just a symlink to /usr/share/bugzilla/web
> /var/www/bugzilla_graphs: another link, to ../lib/bugzilla/graphs
> /usr/lib/cgi-bin/bugzilla: all cgi stuff
>
> Does anyone know what I am missing here? I don't really want to move a
> bunch of files around, as I'm not sure I would have the knowledge to
> re-link them all. Any ideas would be helpful, though!

The documentation on how to set up Apache directories is in this link:

http://www.bugzilla.org/docs/2.22/html/configuration.html

You will want to look at section 2.2.4.1 (above).

You'll also want to look at

http://httpd.apache.org/docs/2.0/howto/cgi.html (Apache 2.0)
http://httpd.apache.org/docs/2.2/howto/cgi.html (Apache 2.2)

http://httpd.apache.org/docs/2.0/howto/htaccess.html (Apache 2.0)
http://httpd.apache.org/docs/2.2/howto/htaccess.html (Apache 2.2)

and

http://httpd.apache.org/docs/2.2/mod/core.html#scriptinterpretersource
(if you host in MS-Windows)

---
Kevin Benton
Perl/Bugzilla Developer/Administrator, Perforce SCM Administrator
AMD - ECSD Software Validation and Tools
 
The opinions stated in this communication do not necessarily reflect the
view of Advanced Micro Devices and have not been reviewed by management.
This communication may contain sensitive and/or confidential and/or
proprietary information.  Distribution of such information is strictly
prohibited without prior consent of Advanced Micro Devices.  This
communication is for the intended recipient(s) only.  If you have
received this communication in error, please notify the sender, then
destroy any remaining copies of this communication.



_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.