Actions
Bug #2512
closedmysql_vhosts Complex SQL
Status:
Duplicate
Priority:
Normal
Category:
mod_mysql_vhost
Target version:
-
ASK QUESTIONS IN Forums:
Description
Upon reading the documentation I came up with the below SQL:
SELECT * FROM (SELECT IF((SELECT rootdir FROM vhosts WHERE vhost='?'),(SELECT rootdir FROM vhosts WHERE vhost='?'),(SELECT rootdir FROM vhosts WHERE '?' like vhost)) as rootdir) as a WHERE rootdir IS NOT NULL
This will return a row with an exact match to the host or if not found a row matching '%.example.com'. If neither are found it returns nothing. However it breaks the vhost.
Example(s):
http://test.bfddesigns.net/
Which should return a path of: /var/www/vhosts/bfddesigns.net/subdomains/test/index.php but does not.
When I revert the SQL to the default SQL everything works fine.
Updated by stbuehler about 11 years ago
- Status changed from New to Duplicate
- Target version deleted (
1.4.x)
Actions
Also available in: Atom