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 webmaster@url.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:
The place i bought my url from is currently just forwarding to my IP address, i havent set up any dns type stuff, i was hoping it would be ok, but when i type my url into a browser it gives me the default "Hey it worked!" default page. I dont know what im doing wrongCode:NameVirtualHost www.url.com:80 # <VirtualHost www.url.com:80> ServerAdmin webmaster@url.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.
- 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:
<VirtualHost *:80>
ServerAdmin myemail@email.com
DocumentRoot /var/wwwroot/htdocs
ServerName www.url1.com
</VirtualHost>
<VirtualHost *:80>
ServerName www.url2.com
ServerAdmin myemail2@email.com
DocumentRoot /home/webadmin/wwwroot
</VirtualHost>
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.Join the Open Source Revolution. Support GNU/Linux.
Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
- 05-27-2006 #3
I forgot about trying the * oops. Before i did that i added
to the /etc/hosts file, reloaded apache and bingo. It works woooCode:www.url.com 192.168.1.3
Didnt think that would make a difference.
Thanks for the help
- 05-27-2006 #4
No problem...glad it helped!
Join the Open Source Revolution. Support GNU/Linux.
Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
- 08-23-2006 #5Just Joined!
- Join Date
- Jul 2006
- Posts
- 4
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
help me!..
by
guna



