Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:boombatower
drupal-vhosts
drupal-vhosts.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File drupal-vhosts.spec of Package drupal-vhosts
BuildRequires: apache >= 2.0 Name: drupal-vhosts License: GNU GPLv2 Group: Productivity/Networking/Web/Servers Summary: Apache virtual hosts for Drupal Version: 2.0 Release: 1 URL: http://www.apache.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Source0: drupal-localhost.conf Source1: drupal-listen.conf Source2: drupal-vhosts %description Configure Apache virtual hosts for a clean Drupal environment and multi-site development. The virtual hosts follow the pattern d[VERSION]x.loc, for example Drupal 7 development takes place at d7x.loc and any sub-domains would be sub1.d7x.loc. By default the virtual hosts point to '/srv/www/htdocs/drupal-x', but you can configure the location by using the drupal-vhosts script. The script should be in your run path so you can execute it using its name. The script will then ask you for the new root location for you Drupal development. Since the script will be modifying apache configuration files it needs to be executed from the root user. %prep %build %install # copy configuration files to apache directories. %__install -Dm 0644 %{_sourcedir}/drupal-localhost.conf %{buildroot}/etc/apache2/vhosts.d/drupal-localhost.conf %__install -Dm 0644 %{_sourcedir}/drupal-listen.conf %{buildroot}/etc/apache2/conf.d/drupal-listen.conf # place script in /sbin. %__install -Dm 0750 %{_sourcedir}/drupal-vhosts %{buildroot}%_sbindir/drupal-vhosts %clean rm -rf %{buildroot} %files %defattr(-,root,root) %config /etc/apache2/vhosts.d/drupal-localhost.conf %config /etc/apache2/conf.d/drupal-listen.conf %_sbindir/drupal-vhosts
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor