|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I have edited the httpd.conf file to do virtual hosting. I have registered 3 domains, all pointing to the same ip, through zoneedit.com
This is how the name hosting part is configured on apache: NameVirtualHost * <VirtualHost *> ServerName www.domain1.com DocumentRoot /www/domain1.com </VirtualHost> <VirtualHost *> ServerName www.domain2.com DocumentRoot /www/domain2.com </VirtualHost> <VirtualHost *> ServerName www.domain3.com DocumentRoot /www/domain3.com </VirtualHost> It's strange... because all of the domains I have pointed to the server go to /www/domain1... they don't go to their specified directories, but go to only one, domain1 I would appreciate some help. |
|
#2
|
|||
|
|||
|
>> all pointing to the same ip
So NameVirtualHost * that * should be that IP as well as the <VirtualHost your.ip.address.here> >> because all of the domains I have pointed to the server go to /www/domain1 Say www.domain1.com is your default domain, you must remove DocumentRoot line that's not within any <VirtualHost> block. Also, within each <VirtualHost your.ip.address.here>, there _should_ also be a <Directory "/www/domainx.com"> within it unless you have that defined globally (outside of <VirtualHost>). |
|
#3
|
|||
|
|||
|
ok... so...
I should have <Directory "/www/domain2.com"> inside the <VirtualHost> </VirtualHost> for domain 2? along with all the info I had before?
|
|
#4
|
|||
|
|||
|
>> I should have <Directory "/www/domain2.com"> inside...
You must have it within <VirtualHost> or outside of <VirtualHost>. <Directory "/www/domain2.com"> must exists in your httpd.conf somewhere. If the docroot of your default domain is /www, and domain2.com is a subdir of /www, then you don't have to because all the options and AllowOverride will be inherited from your default domain's docroot at /www. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Problems with virtual hosting on Apache... freebsd |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|