Author |
|
rj_pc
Joined: 01 Apr 2009 Posts: 8 Location: Lubbock TX
|
Posted: Mon 04 May '09 18:38 Post subject: Virtual Hosting Help Requested |
|
|
I have two sites, hosted on one server with apache one site www.jschorsch.com can be viewed... the other site www.rjpcservices.com is not showing today but was yesterday. however when you type jschorsch.com it goes to www.rjpcservices.com but when you add the www. in front it goes to jschorsch.com... what did i do wrong? please help |
|
Back to top |
|
rj_pc
Joined: 01 Apr 2009 Posts: 8 Location: Lubbock TX
|
Posted: Mon 04 May '09 19:22 Post subject: |
|
|
I've also found that in my access_log there is a line about midnight thirty from ip address 190.144.93.58 "'get /user/soapCaller.bs HTTP/1.1' 404 216" from what i have ready its a website scanner. How do i fix this? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 04 May '09 21:08 Post subject: |
|
|
Let's start with your second post first. How do you fix, you don't really. You have no control over it unless you want to start playing the IP blocking game (useless) or the bot redirection game (not as useless but not a fix). There really is no fix because there is no problem, with Apache.
Best thing to do is keep all webapps that you do have up-to-date as far as versions/patches and mod_security is handy as well.
For the VHost problem, we would need to see your virtual host configuration and from the Main part of your server config, just the server name and docroot. Not your entire config file. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 04 May '09 23:21 Post subject: |
|
|
Tip: If needed use http://pastebin.com/ for posting larger parts |
|
Back to top |
|
rj_pc
Joined: 01 Apr 2009 Posts: 8 Location: Lubbock TX
|
Posted: Mon 04 May '09 23:42 Post subject: |
|
|
<VirtualHost 99.171.226.1>
ServerName www.rjpcservices.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/rjpcservices"
ErrorLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/rjpcservices.com-error_log"
TransferLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/rjpcservices.com-access_log"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/rjpcservices">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory
</VirtualHost>
<VirtualHost 99.171.226.1>
ServerName www.jschorsch.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jschorsch"
ErrorLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/jschorsch.com-error_log"
TransferLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/jschorsch.com-access_log"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jschorsch">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory
</VirtualHost> |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 05 May '09 20:34 Post subject: |
|
|
Try to add the ServerAlias:
..
..
ServerName www.rjpcservices.com
ServerAlias rjpcservices.com
..
and
..
..
ServerName www.jschorsch.com
ServerAlias jschorsch.com
..
Steffen |
|
Back to top |
|
rj_pc
Joined: 01 Apr 2009 Posts: 8 Location: Lubbock TX
|
Posted: Tue 05 May '09 23:06 Post subject: |
|
|
ServerAlias rjpcservices.com www.rjpcservices.com
is what i added yesterday seems to fix on outside sources but inside network i am still getting same message checked firewall settings everything is fine... just confused any other advice would be awesome |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 05 May '09 23:23 Post subject: |
|
|
I'm going to take a stab at this looking at your VHosts and assume your on 80 and /htdocs is the main docroot.
<VirtualHost _default_:80>
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
</VirtualHost>
Make that your first one. |
|
Back to top |
|
rj_pc
Joined: 01 Apr 2009 Posts: 8 Location: Lubbock TX
|
Posted: Wed 06 May '09 19:18 Post subject: |
|
|
did that and got the error "the requested operation has failed!" Replaced default with my ip and got the same message. Took off the :80 and got the same message.
just curious but would it be better if you seen the whole code? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 06 May '09 19:51 Post subject: |
|
|
In my view yes .. but the rules here are no complete config posting .. that is also why I asked about the main host, and the main document root.
See the part about "Main goes away" here.
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
which is where I was headed .. but you did not provide us with that small bit.
James also posted link to pastebin
But as Apache docs state .. first vhost MUST be a duplicate of the main host above. |
|
Back to top |
|