0

greetings. i need to set up some ServerAlias records so multiple domains can be mapped to the same application folder however with this shared server i don't have access to the httpd-vhosts.conf file. Can this be done some other way, using .htaccess perhaps?

davidhyland
  • 335
  • 1
  • 2
  • 4
  • sorry, i should add that my dev set up is xampp on windows (hence the vhosts file) whereas the production server will be apache. i don't know if there's a different file that can be edited for apache? – davidhyland Jun 08 '11 at 16:59

1 Answers1

1

ServerAlias directive can be defined in virtual host context but not in htaccess.

VirtualHost directive can only be defined in server config context. The httpd-vhosts.conf is linked/included into main config file and therefore part of the server config context.

P.S. xampp uses Apache as web server, so you will have Apache in both places anyway.

If you want to modify any parameters of <VirtualHost> you may write an email to the hosting company to see if they can do it for you. But I think that it most likely will be declined as virtually all operations on configuring <VirtualHost> are fully automated no manual editing is involved, and even if done the changes may get lost when you/they modify server config via control panel.

LazyOne
  • 3,064
  • 1
  • 18
  • 16