Re: [users@httpd] Apache: Avoiding users to access 'www.foo.com/subdomain1/'

2016-09-20 Thread Marat Khalili
There's a way to achieve what you ask with mod_rewrite directives in .htaccess, but before trying this, why not point foo.com to a separate directory? -- With Best Regards, Marat Khalili On 19/09/16 21:41, thomas Armstrong wrote: Hi. I have an Apache server, which main rootwebdir is

[users@httpd] Apache: Avoiding users to access 'www.foo.com/subdomain1/'

2016-09-19 Thread thomas Armstrong
Hi. I have an Apache server, which main rootwebdir is '/usr/www/users/foo/' and 'foo.com' points there. However, I have some subdomains pointing within their directories: subdomain1.foo.com ---> /usr/www/users/foo/subdomain1subdomain2.foo.com ---> /usr/www/users/foo/subdomain2 This causes me a