edit: instead of using Domain Pointers to Redirect.
where can i get more information about ./directadmin/data/users/admin/httpd.conf ?
how is it generated?
is it regenerated from scratch when i modify a domain?
if i modify the file will the modifications stick after i save settings in directadmin?
is there a way i can add ServerAlias's in directadmin or do i have to use Redirect?
if i had a couple of domains and wanted them to point to one main domain, would it be better to use ServerAlias?
for example:
<VirtualHost x.x.x.x:80>
ServerName www.main.com
ServerAlias www.main.com main.com *alias1.com *alias2.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^main\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(.*\.)?alias.\.com$ [NC]
RewriteRule ^(.*)$ http://www.main.com/$1 [R=301,L]
</VirtualHost>
if i decide to just use ServerAlias instead of Redirect's, do i still have to add the domain names in the dns admin and ip manager?
would i have to have to go to "your user -> modify dns record" and manually add:
ftp A x.x.x.x
alias.com. A x.x.x.x
localhost.alias.com. A 127.0.0.1
mail A x.x.x.x
pop A x.x.x.x
www A x.x.x.x
alias.com. NS ns1.xxx.com.
alias.com. NS ns2.xxx.com.
alias.com. MX 0
where can i get more information about ./directadmin/data/users/admin/httpd.conf ?
how is it generated?
is it regenerated from scratch when i modify a domain?
if i modify the file will the modifications stick after i save settings in directadmin?
is there a way i can add ServerAlias's in directadmin or do i have to use Redirect?
if i had a couple of domains and wanted them to point to one main domain, would it be better to use ServerAlias?
for example:
<VirtualHost x.x.x.x:80>
ServerName www.main.com
ServerAlias www.main.com main.com *alias1.com *alias2.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^main\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(.*\.)?alias.\.com$ [NC]
RewriteRule ^(.*)$ http://www.main.com/$1 [R=301,L]
</VirtualHost>
if i decide to just use ServerAlias instead of Redirect's, do i still have to add the domain names in the dns admin and ip manager?
would i have to have to go to "your user -> modify dns record" and manually add:
ftp A x.x.x.x
alias.com. A x.x.x.x
localhost.alias.com. A 127.0.0.1
mail A x.x.x.x
pop A x.x.x.x
www A x.x.x.x
alias.com. NS ns1.xxx.com.
alias.com. NS ns2.xxx.com.
alias.com. MX 0
Last edited: