Results 1 to 5 of 5
Hi all, im having problems getting a virtual host going, here is the part of my httpd.conf: Code: NameVirtualHost www.url.com:80 # <VirtualHost www.url.com:80> ServerAdmin email@example.com DocumentRoot /var/www/url.com ServerName www.url.com ErrorLog ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2006 #1
Apache virtual host problem
Hi all, im having problems getting a virtual host going, here is the part of my httpd.conf:
NameVirtualHost www.url.com:80 # <VirtualHost www.url.com:80> ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/url.com ServerName www.url.com ErrorLog /var/log/apache/url.com-error_log CustomLog /var/log/apache/url.com-access_log common </VirtualHost>
Im using apache 1.3.34
Any help greatly appreciated.
- 05-27-2006 #2
What happens if you type your local ip into your web browser? Do you get the page you are expecting?
Looking at my own virtual host entries:
Because I host both on the same box, I don't care what url or ip is in that VirtualHost directive, as the server is looking at port 80 all the time. So, based on what ServerName the traffic is trying to get to, it loads from one directory or the other.
I did have to create that first VirtualHost even though that was my main website (before I added the second), so you may have to do the same if you are hosting multiple sites.
Hope that helps.
- 05-27-2006 #3
I forgot about trying the * oops. Before i did that i addedCode:
Thanks for the help
- 05-27-2006 #4
No problem...glad it helped!
- 08-23-2006 #5
- Join Date
- Jul 2006
Error while start server
Tomcat version 5.5.12
http version 2.2.2
OS fedora core 5
i tried to configure virtual hosting in my computer,
i configured server as told in document,which i attached along with this mail,
then i tried to config as followed command,i got followed Error
Command : /usr/local/apache2/bin/apachectl configtest
Error : "httpd: Syntax error on line 59 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk1.so into server: /usr/local/apache2/modules/mod_jk1.so: wrong ELF class: ELFCLASS32 "
at 59th line in httpd.conf [LoadModule jk_module modules/mod_jk.so]
i copied mod_jk.so in to modules folder,i dowloaded that file from apache site,
Tomcat is working fine,
i did same configration in fedora core 4,it's works fine