http://httpd.apache.org/docs/2.0/vhosts/examples.html

On Jun 22, 7:34 pm, "Brian Ritchie" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> My first post to this mailing list.  I didn't see this in the archive.  It
> this was covered before, sorry about that.
>
> I have a webserver (Ubuntu, Apache2) with dynaminc vhosts setup. I'm
> experimenting with django a bit and I tried to setup the byteflow blog by
> adding a subdomain ofhttp://blog.mysite.com(note: not the real URL :P).  I
> followed the instructions shown here...
>
> http://blog.leschinsky.in.ua/2008/02/05/byteflow-installation/http://blog.leschinsky.in.ua/2008/02/05/byteflow-setup/
>
> Installation went smoothly but the apache2 setup isn't right. Those
> isntructions are meant for a more simple apache2 setup. I'm not the most
> knowledgeable when it comes to setting up Apache2 vhosts (using the
> sites_available and sites_enabled directories), so I can't get it to work. I
> had some fellow programmers help me but they were not familiar with this
> type of apache2 setup either. Here is the basic byteflow config that I
> used...
>
> NameVirtualHost *:80
> <VirtualHost blog.mysite.com:80>
>    ServerAdmin [EMAIL PROTECTED]
>    ServerName blog.mysite.com
>
>     <Location "/">
>               SetHandler python-program
>               PythonHandler django.core.handlers.modpython
>               SetEnv DJANGO_SETTINGS_MODULE settings
>               PythonDebug On
>               PythonPath "['/home/me/django-src/byteflow' ] + sys.path"
>         </Location>
>
>     Alias /static/ /home/me/django-src/byteflow/static/
>     <Location "/static">
>               SetHandler None
>     </Location>
>
>     Alias /admin-media/
> /home/me/django-src/django_trunk/django/contrib/admin/media/
>         <Location "/admin-media">
>                   SetHandler None
>         </Location>
>
>         ErrorLog /var/log/apache2/byteflow.log
>         LogLevel warn
>         CustomLog /var/log/apache2/byteflow.log combined
>  </VirtualHost>
>
> That *almost* works. Under certain variations of this configuration, I can
> see the blog and I know that the blog is functional. The problem is that
> this config causes all of my dynamic vhost domains to display the blog
> (eek!). I've tried variations of this where I placed my full URL
> blog.mysite.com:80 for the NameVirtualHost and VirtualHost lines, including
> removing NameVirtualHost from this config. It seems that I can get either
> one of two results. I can get the blog to appear on all of my sites or I can
> get the blog.mysite.com to point to /www/blog.mysite.com/ (which is blank)
> like the rest of my dynamic vhosts.
>
> My dynamic_vhosts config has this...
>
> <Directory "/www/*/">
>         Options Indexes FollowSymLinks MultiViews
>         DirectoryIndex index index.html index.php index.phtml
>
>         AllowOverride All
>         Order allow,deny
>         Allow from all
>
> </Directory>
> <VirtualHost 99.99.99.99:80> #the IP of my server
> # Get servername from Host: header
> UseCanonicalName Off
>
> # this log format can be split per-virtual-host based on the first field
> LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
> LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"\"%{User-Agent}i\""
> vcombined
> CustomLog /var/log/apache2/access_vhost_log vcombined
>
> #
> # include the server name in the filenames used to satisfy requests
> VirtualDocumentRoot /www/%0/public_html
> VirtualScriptAlias  /www/%0/cgi-bin
> #
> #   This configuration can be changed into an IP-based virtual hosting
> #   solution by just turning UseCanonicalName Off into UseCanonicalName DNS.
> #   The server name that is inserted into the filename is then derived from
> #   the IP address of the virtual host.
> </VirtualHost>
>
> So I'm looking for a mix of dynamic vhosts for all of my domains except one
> select vhost that gets handled by mod_python.
> Any insight would be helpful.  Thanks.
>
> Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to