Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

virtual host question

 
   Web Hosting and Web Master Forums (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: 2907



(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:   
Related Topics:
A different type of Virtual host question - I have a dynamic IP address with to host names. I have used examples from the VirtualHost doc for the following configuration in httpd.conf. <snip> Listen 82 Listen 83 NameVirtualHost *:82 NameVirtualHost *:83 <VirtualHost *:82> ServerN...

virtual host document root question - Apache2 on WinXP home, Its running on my home network so I'm using local paths (d:\web is my main documentroot dir) I've got this code seting up Virtual hosts on different ports of my existing IP... works fine, except it will only point to the main..

virtual host - Hi, I'm a newbie on Apache, so I need help for the configuration of Virtual Hosts. My english is bad, I'm sorry and I hope you can understand me... I've seen the documentation and I've tried many times but my configuration doesn't works... I've a lots....

Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my httpd.conf works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain www.mysite.com or it's aliases. ..

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 webserver. i have set up virtualhost, and have 2 domains on my server, one of my domains(mydoamin2) canīt execute cgi, the other can. I get this in my error.log "Options execCGI is off in this directory"...
   Web Hosting and Web Master Forums (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 ]