logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Hosts
Author
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Fri 22 Sep '06 21:25    Post subject: Virtual Hosts Reply with quote

I made this config, and i have two domains regestered to my ip. I configured my virtual hosts, but when i go to one of the regestered domains, it just goes to the document root. what am i doing wrong?

heres the config:

Code:
<VirtualHost localhost>
ServerAlias  *.www.softwarebase.net
ServerName www.softwarebase.net
DocumentRoot "C:/inetpub/wwwroot/softwarebase"
</VirtualHost>

<VirtualHost localhost>
ServerAlias  *.www.gsclife.org
ServerName www.gsclife.org
DocumentRoot "C:/inetpub/wwwroot/gsclife"
</VirtualHost>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7364
Location: Germany, Next to Hamburg

PostPosted: Fri 22 Sep '06 23:28    Post subject: Reply with quote

<VirtualHost localhost>
is wrong!

Code:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin you@provider.com
    DocumentRoot C:/server2/www
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com
    ErrorLog C:/server2/logs/error.log
    CustomLog C:/server2/logs/access.log common
<Directory "C:/server2/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Sat 23 Sep '06 3:36    Post subject: Reply with quote

IT WORKED Thank you soooooo much!!!! Very Happy
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Sun 24 Sep '06 21:23    Post subject: Reply with quote

how do i make a folder in my computer be hosted at something.com/something?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7364
Location: Germany, Next to Hamburg

PostPosted: Sun 24 Sep '06 22:35    Post subject: Reply with quote

DocumentRoot C:/server2/www

Where ever you set that, create there the subfolder

e.g.

C:/server2/www/subfolder
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Sun 24 Sep '06 22:37    Post subject: Reply with quote

is that the only way?
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Mon 25 Sep '06 0:22    Post subject: Reply with quote

you could do an
Alias /Somepath c:\mypath\

if the server has read access to that folder also
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Mon 25 Sep '06 0:55    Post subject: Reply with quote

what is the code for that? Question

EDIT: nevermind Smile
Back to top


Reply to topic   Topic: Virtual Hosts View previous topic :: View next topic
Post new topic   Forum Index -> Apache