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

vhosts problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  redirect to a specific url?  
Author Message
josh1

External


Since: Jan 28, 2004
Posts: 19



(Msg. 1) Posted: Mon Apr 19, 2004 2:28 pm
Post subject: vhosts problem
Archived from groups: alt>apache>configuration (more info?)

hi all
i need to change documentroot for each project so i've created some
virtualhost by name like xxx.localhost

now i don't know how can i access to this virtual host from internet... i
have a dynamic ip... naturally if i type ip/xxx i can see my project but
documentroot change to default documentroot

 >> Stay informed about: vhosts problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Apr 19, 2004 2:28 pm
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josh <josh.TakeThisOut@pixael.com> wrote:
 > now i don't know how can i access to this virtual host from internet...

You need a way to address your server by name, and not by IP address,
this way Apache will know which VHost to use when you ask for it.
You can use a service like dyndns or (if you can) just use your
/etc/hosts file on the machine from which you are browsing.

Davide

--
| How come wrong numbers are never busy?
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: vhosts problem 
Back to top
Login to vote
josh1

External


Since: Jan 28, 2004
Posts: 19



(Msg. 3) Posted: Mon Apr 19, 2004 3:14 pm
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> ha scritto nel messaggio
news:c6071r$6e67t$1@ID-18487.news.uni-berlin.de...
 > Josh <josh.TakeThisOut@pixael.com> wrote:
  > > now i don't know how can i access to this virtual host from internet...
 >
 > You need a way to address your server by name, and not by IP address,
 > this way Apache will know which VHost to use when you ask for it.
 > You can use a service like dyndns or (if you can) just use your
 > /etc/hosts file on the machine from which you are browsing.

i can create some dyndns url for each my projects... right?

and then add the virtual host by name<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhosts problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Mon Apr 19, 2004 4:52 pm
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josh <josh DeleteThis @pixael.com> wrote:
 > i can create some dyndns url for each my projects... right?
 > and then add the virtual host by name

Right.
Davide

--
| Immigration is the sincerest form of flattery. -- Jack Paar
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhosts problem 
Back to top
Login to vote
josh1

External


Since: Jan 28, 2004
Posts: 19



(Msg. 5) Posted: Mon Apr 19, 2004 7:13 pm
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> ha scritto nel messaggio
news:c60lip$6m10v$1@ID-18487.news.uni-berlin.de...
 > Josh <josh RemoveThis @pixael.com> wrote:
  > > i can create some dyndns url for each my projects... right?
  > > and then add the virtual host by name
 >
 > Right.
 > Davide

thx
Giuseppe Wink<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhosts problem 
Back to top
Login to vote
josh1

External


Since: Jan 28, 2004
Posts: 19



(Msg. 6) Posted: Mon Apr 19, 2004 9:37 pm
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> ha scritto nel messaggio
news:c60lip$6m10v$1@ID-18487.news.uni-berlin.de...
 > Josh <josh RemoveThis @pixael.com> wrote:
  > > i can create some dyndns url for each my projects... right?
  > > and then add the virtual host by name

i've created the vhost but xxx.dnsalias.com (point to my ip) return a dns
error

this is in my httpd.conf

NameVirtualHost xxx.dnsalias.com

<VirtualHost xxx.dnsalias.com>
ServerAdmin xxx RemoveThis @xxx.com
DocumentRoot "C:/Documents and Settings/User/Documents/projects/xxx/"
ServerName xxx.dnsalias.com
ErrorLog logs/xxxdnsalias-error_log
CustomLog logs/xxxdnsalias-access_log common
</VirtualHost><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhosts problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Tue Apr 20, 2004 7:39 am
Post subject: Re: vhosts problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josh <josh RemoveThis @pixael.com> wrote:
 > this is in my httpd.conf
 > NameVirtualHost xxx.dnsalias.com
 > <VirtualHost xxx.dnsalias.com>

If you get a DNS error maybe you should check your DNS settings.

Once again, read the documentation!

NameVirtualHost *
<VirtualHost *>
  ServerName xxx.....

Davide

--
| While it may be true that a watched pot never boils, the one you don't
| keep an eye on can make an awful mess of your stove.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhosts problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache SSL with vhosts - I posted earlier here with some wrong details.... about my questions (old link below). If I have apache on a machine. 1 ip address. multiple virtual hosts. Can I add multiple SSL certificates to each virtual host when they are name based and not ip..

ip vhosts and localhosts - ok heres the deal at work i have a windows box running apache 1.3.28 with local ip 192.168.100.1 which will herein be referred to as "Steve". i use apache on that box for development purposes i have an adsl connection with static ip 1.2.3.4 and...

Upgrading 1.3 -> 2.0 vhosts? - Hi! Does the httpd config differ much between 1.3 and 2.0? The reason I wonder is becouse I just reinstalled my system and in the new system I went with 2.0 and copied most entries from the 1.3 config, but now my virtual hosts doesn't work anymore....

Vhosts, subdomains and proxypass (probably proxypass ) - I have the folowing problem i cant configure my apache to serve like tkat: if called www.domain.com then apache gets data from domain.com:8100 if called wap.domain.com then apache gets data from domain.com:8200 if called domain.com then apache serves his...

ScriptAlias not working in vhosts.conf - I'm having a problem with getting ScriptAlias to work within a virtual host. It works just fine in the default server (commonhttpd.conf): <IfModule mod_alias.c> Alias /icons/ /var/www/icons/ Alias /doc /usr/share/doc ScriptAlias..
   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 ]