Hello,
I'm not sure I'm fully understanding the question...
A) Are you referring to an issue with the DA template system? If yes, see below.
B) Else, are you referring to issues when adding multiple rewrites in a server {} context?
If you want multiple rewrite entries, you'd need to have different conditions, else the first rewrite would always take precedence.
-----
If you're reporting a DA template issue, you should be able to add code to:
Admin Level -> Custom Httpd Config -> domain.com
for each domain you want, and have that code added to the given domains.
I just tested with one of our test boxes.. added different custom code to each domain under one User account, and the custom code showed up in each domain as intended.
Note that we are using the latest pre-release binaries/templates, so maybe try updating to the pre-release templates, in case there were changes to the binaries/templates which allowed it to work for me.
If you do get the pre-release binaries, be sure to delete your custom templates, and rebuild them again from our current nginx_*.conf templates.
1) To confirm, you're trying to add this code to all domains under the single User account?
Code:
# custom rewritesif (!-e $request_filename)
{
rewrite "^/(.*)$" "/blog/index.php";
}
2) Can you confirm that all required domains have the custom code added?
Code:
cd /usr/local/directadmin/data/users/[B]username[/B]/domains
ls -la *.cust_nginx
cat *.cust_nginx
3) I noticed this custom code:
Code:
# for future
# include /usr/local/directadmin/data/users/starsama/nginx-www.domain3(the one i want rewrite).conf;
include /usr/local/directadmin/data/users/starsama/nginx-rewrites.conf;
Was this code added via the data/templates/custom/nginx_*.conf files?
If yes, confirm each of the 4 nginx_*.conf files to the originals to ensure there are no other changes than just your own changes.
I'm not sure if I answered your question, so please let me know if I've misunderstood what you need or if it's a DA issue or not.
John