Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

virtual host question

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  WHICH version for which apache and cold fusion  
Author Message
josh1

External


Since: Jan 28, 2004
Posts: 19



(Msg. 1) Posted: Mon Feb 09, 2004 6:01 pm
Post subject: virtual host question
Archived from groups: alt>apache>configuration (more info?)

hi all

i'm using www.dyndns.org to redir (for example) the url xxx.dyndns.org/site
to
my.ip/site

how can i set a virtual host for configure xxx.dyndns.org/site ?

i've tried

NameVirtualHost xxx.dnsalias.com/site
<VirtualHost xxx.dnsalias.com/site>
ServerAdmin xxx DeleteThis @site.com
DocumentRoot "C:/Documents and Settings/User/projects/site/"
ServerName xxx.dnsalias.com/site
ErrorLog logs/xxx-error_log
CustomLog logs/xxx-access_log common
</VirtualHost>

but this don't work

 >> Stay informed about: virtual host question 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Mon Feb 09, 2004 6:01 pm
Post subject: Re: virtual host question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josh <josh DeleteThis @pixael.com> wrote:
 > i'm using <a style='text-decoration: underline;' href="http://www.dyndns.org" target="_blank">www.dyndns.org</a> to redir (for example) the url xxx.dyndns.org/site
 > to my.ip/site

DNS can redirect domains, not directories, the best you can do is to
catch xxx.dyndns.org and then put an alias to /site in the same
configuration on your Apache. But what's the point to direct a whole
domain to a single subdir?

 > NameVirtualHost xxx.dnsalias.com/site
 > <VirtualHost xxx.dnsalias.com/site>

Use * and not the domain name,

NameVirtualHost *
<VirtualHost *>
  ServerName xxx.dnsalias.com
  DocumentRoot ..../site
  <Directory "..../site">
  ...
  </Directory>
  ...other directives...
</VirtualHost>

Davide

--
| If JavaScript is walking alone late at night through a bad part of
| town with a pocket full of $20 bills, ActiveX is dropping your
| trousers in the middle of the yard of a maximum-security prison,
| bending over, and yelling 'Come and get it, boys!' --Adam<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual host question 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]