Results 1 to 5 of 5
Thread: Apache virtual host problem
Enjoy an ad free experience by logging in. Not a member yet? Register.
Apache virtual host problem
NameVirtualHost www.url.com:80 # <VirtualHost www.url.com:80> ServerAdmin email@example.com 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.
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.
I forgot about trying the * oops. Before i did that i addedCode:
Thanks for the help
No problem...glad it helped!
- 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