views:

559

answers:

1

I have a VPS. I hosted a domain ipointing to a sub directory of the www folder. The domain works fine till the home page. The moment I start going to other pages its shows my servers [orginalname]/[subdirectory name] . I think I need to add a server alias to the domain's VHOST. Can anyone tell me how to do that??

A: 

Are you using Apache? Try with

<VirtualHost *:80>
   DocumentRoot "/path/to/document/root"
   ServerName name1
   ServerAlias name2
 ...
rlovtang
Where do i put this entry??? in which file i mean..
Arkid
i have added this to the /etc/apache2/sites-enabled # Ensure that Apache listens on port 80Listen 80# Listen for virtual host requests on all IP addressesNameVirtualHost *:80<VirtualHost *:80>DocumentRoot /var/www/[]subfoldername/ServerName .......ServerAlias ........# Other directives here</VirtualHost>~
Arkid