It would be nice to have a sample apache config distributed with hostmaster, and optionally directly installed in /etc/apache{,2}/{conf.d,sites-enabled}.

CommentFileSizeAuthor
#1 hostmaster.koumbit.net.txt447 bytesanarcat

Comments

anarcat’s picture

Status: Active » Needs review
StatusFileSize
new447 bytes

Our config file. I think that the AllowOverride there is a bit too much, since I *think* we can have clean_urls with just symlinks.. or something.

Comments welcome.

anarcat’s picture

I reworked this a bit... Basically, to have created drupals work, you need to AllowOverride on /var/hostmaster/webroot for all the VirtualHosts:

NameVirtualHost *:80
<VirtualHost *:80>
RewriteEngine On
        ServerAdmin webmaster@localhost
        ServerName hostmaster.koumbit.net

        DocumentRoot /var/hostmaster/webroot
</VirtualHost>
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/hostmaster/webroot>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

Include /var/hostmaster/config/vhost.d/

ransom’s picture

Version: » 5.x-0.1-alpha1

http://drupal.org/node/87552

wrote that along time ago.. not sure if it'd help much wrote it in .sh (bash) not .php but *shrug*

PS:(horribly dislexic so it's probably totally off topic I do that alot & I'm reading through bug reports to see if I want to try alpha or wait for a more pub relics..)

anarcat’s picture

Title: package a basic Apache configuration file to hook in » package basic Apache configuration files to hook in

So we need two files:

* one in /etc/apache*/conf.d/hostmaster:

Include /var/hostmaster/config/vhost.d/
 

* another in /var/hostmaster/config/vhost.d/

NameVirtualHost *:80
<VirtualHost *:80>
RewriteEngine On
	ServerAdmin webmaster@localhost
	ServerName hostmaster.koumbit.net
	
	DocumentRoot /var/hostmaster/webroot
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/hostmaster/webroot>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>
</VirtualHost>

Note how I kept the AllowOverride in the VirtualHost directive. Other domains will have to reproduce that config, if relevant.

spiderman’s picture

Just ran into issues with installed sites not working due to the Options/Override thing. I found that using anarcat's "reworked" config in #2 worked fine, but I couldn't make it work by leaving the section inside the VirtualHost, as suggested in #4 (which makes sense to me, but I read anarcat's last comment as saying this is preferable and/or works for him ;)

anarcat’s picture

Version: 5.x-0.1-alpha1 »
Status: Needs review » Fixed

I added a configuration file to the install profile.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 16949cf on 5.x, 599758_edit_main_site, 640952_client_preview, dev-dns, dev-features, dev-headless_install, dev-log_directory, dev-migrate_aliases, dev-multiserver-install, dev-newsiteform, dev-nginx, dev-platform_management, dev-ports, dev-purgebackup, dev-relationships, dev-restore, dev-server_nodetype, dev-services, dev-site_rename, dev-ssl, dev_dns, prod-koumbit, ssl, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by anarcat:
    provide a basic apache configuration file
    
    Closes: #262005
    

  • Commit 16949cf on 5.x, 599758_edit_main_site, 640952_client_preview, dev-dns, dev-features, dev-headless_install, dev-log_directory, dev-migrate_aliases, dev-multiserver-install, dev-newsiteform, dev-nginx, dev-platform_management, dev-ports, dev-purgebackup, dev-relationships, dev-restore, dev-server_nodetype, dev-services, dev-site_rename, dev-ssl, dev_dns, prod-koumbit, ssl, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by anarcat:
    provide a basic apache configuration file
    
    Closes: #262005