- Timestamp:
- Jan 26, 2010, 7:04:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/fedora/config/etc/httpd/vhosts.d/reify-vhost.py
r978 r1445 33 33 if len(r) != 0: 34 34 user = pwd.getpwuid(int(r[0][1]['apacheSuexecUid'][0])) 35 serveralias = "" 36 if 'apacheServerAlias' in r[0][1]: 37 serveralias = "ServerAlias "+r[0][1]['apacheServerAlias'][0] 35 38 print """# do not trailing-slash DocumentRoot 36 39 … … 47 50 <VirtualHost *:443> 48 51 ServerName %(servername)s 49 ServerAlias%(serveralias)s52 %(serveralias)s 50 53 DocumentRoot %(docroot)s 51 54 Alias /~%(uname)s %(homedir)s/web_scripts … … 56 59 <VirtualHost *:444> 57 60 ServerName %(servername)s 58 ServerAlias%(serveralias)s61 %(serveralias)s 59 62 DocumentRoot %(docroot)s 60 63 Alias /~%(uname)s %(homedir)s/web_scripts … … 66 69 </IfModule>""" % { 67 70 'servername': r[0][1]['apacheServerName'][0], 68 'serveralias': r[0][1]['apacheServerAlias'][0],71 'serveralias': serveralias, 69 72 'docroot': r[0][1]['apacheDocumentRoot'][0], 70 73 'uname': user[0],
Note: See TracChangeset
for help on using the changeset viewer.