My current httpd.conf uncludes:
ScriptAliasMatch ^/$ /qsys.lib/something.lib/index.pgm
ScriptAliasMatch /cgi/(.*) /qsys.lib/something.lib/$1.pgm
We are soon going to have many subdomains, which we setup in a database, meaning that if someone goes to something.domain.com, then we will check in the database if "something" is a valid subdomain and render the page with the data from the database.
I need our main domain, and www.domain to still call the index.pgm, but all other subdomains need to call otherindex.pgm.
http://domain.com needs to call index.pgm
http://www.domain.com needs to call index.pgm
http://*.domain.com needs to call otherindex.pgm
I've been searching the web for 2 days now and had no luck, and I am pretty horrid with regex, so any help is appretiated.