11

Add Virtual Hosts To Apache

-

This is a way to run many web sites with many different DNS’s with one computer one IP address and one port. This video will show you how to setup virtual server DNS based for apache. So if your little sister wanted a web server all you have to do is make a virtual host and she can have her own DNS name and not have to go thru your files to get to it. Two seeming separate web sites on the same server. Codes to paste into config file sites.google.com Want to download this video and all the others? go to sites.google.com and get the latest links to download.
Video Rating: 4 / 5

Share and Enjoy

0

Is there a way to have the Apache Web Server re-read httpd.conf without having to restart Apache?

-

Question by andy: Is there a way to have the Apache Web Server re-read httpd.conf without having to restart Apache?
I am trying to figure out how to create an Apache Virtual Host without having to re-start the Web Server.

Best answer:

Answer by J
I’ve never found a way to do this yet myself. On many linux hosts though they do appear to have this ability to add virtual hosts to their apache setup without restarting their httpd service. I’d like to know how too.

I’ve checked through the apache dos on httpd.apache.org but got rather lost while I was there.

To be honest, on windows it might not be possible.

J

Add your own answer in the comments!

Share and Enjoy

0

Apache any good for ASP.NET?

-

Question by zerohourx: Apache any good for ASP.NET?
Im looking for a web server that is capable of running ASP.NET v1.1 and 2.0 web apps. On my Win XP 64-bit box i only have a scaled back IIS6. Im really after virtual hosting so that i can host multiple web sites from the server instead of this virtual directory nonsense.

So far im eyeing Abyss X2 Pro v2.3+, the only working commercial solution i could find, but would like to find a free solution if possible. I’ve heard of Apache’s ability to run ASP.NET. Can you tell me is Apache as effective at serving up ASP.NET 1.1/2.0 web apps as IIS6?

I still need to be able to debug my web apps.

Thanks

Best answer:

Answer by karthik
you will need some plugins along with it
use iis… its good for asp.net
and the configurations on apache can become really weird if you mess up something…

What do you think? Answer below!

Share and Enjoy

0

what seems to be wrong with my apache hosts file… I want to host it on 127.0.0.1 and I can’t get it up?

-

Question by ry s: what seems to be wrong with my apache hosts file… I want to host it on 127.0.0.1 and I can’t get it up?
# Virtual Hosts

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn’t need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
# for further details before you try to setup virtual hosts.
#
# You may use the command line option ‘-S’ to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost www.akak-rylan.com/rylan/index.html

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not


ServerAdmin rynort@yahoo.ie.
DocumentRoot C:/Rylan/index.html
ServerName dummy-host.hsd1.nj.com

Best answer:

Answer by Jeffrey C
Try using localhost instead of the loopback IP#. If you use port forwarding on your router, you can forward any web server traffic to your machine that hosts the server. Just reserve/assign an IP number to your machine so DHCP doesn’t do it. That way you can access your server externally from the net using your IP# from the ISP, or access it internally by using http://localhost or http://192.168.1.2 (or whatever IP# your assign your server machine).

Give your answer to this question below!

Share and Enjoy

0

Apache virtual host config?

-

Question by : Apache virtual host config?
I need to be able to manipulate the host header to map to directories like this:

Website A:
*.subdomainA.(any valid tld or subdomain-tld combination, or perhaps a list of domain names?)
a.subdomainA.example.com
b.subdomainA.example.com
a.subdomainA.example.co.uk
b.subdomainA.example.co.uk

Website B:
*.subdomainB.(any valid tld or subdomain-tld combination, or perhaps a list of domain names?)
a.subdomainB.example.com
b.subdomainB.example.com
a.subdomainB.example.co.uk
b.subdomainB.example.co.uk

I have looked into Apache Mod_Rewrite and Mod_vhost_alias
Any suggestions?
@Grumpy:

Thanks for your answer but I need a solution that will work for a larger number of domain.tld’s, preferably something that is dynamic similarly to how mod_vhost_alias works with the filesystem

If I were to use ServerAlias I would need something like *.subdomainA.* (to match things like blah.subdomainA.com and also *.subdomainA.co.* (to match things like blah.subdomainA.co.uk)

Best answer:

Answer by Grumpy
You can accomplish the same thing with ServerAlias in the vhost configuration.

NameVirtualHost *:80


ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /var/www/domain

Give your answer to this question below!

Share and Enjoy

Page 1 of 3123

Powered by Yahoo! Answers