logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Hosting Help Requested
Author
rj_pc



Joined: 01 Apr 2009
Posts: 8
Location: Lubbock TX

PostPosted: Mon 04 May '09 18:38    Post subject: Virtual Hosting Help Requested Reply with quote

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

PostPosted: Mon 04 May '09 19:22    Post subject: Reply with quote

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

PostPosted: Mon 04 May '09 21:08    Post subject: Reply with quote

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

PostPosted: Mon 04 May '09 23:21    Post subject: Reply with quote

Tip: If needed use http://pastebin.com/ for posting larger parts Wink
Back to top
rj_pc



Joined: 01 Apr 2009
Posts: 8
Location: Lubbock TX

PostPosted: Mon 04 May '09 23:42    Post subject: Reply with quote

<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

PostPosted: Tue 05 May '09 20:34    Post subject: Reply with quote

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

PostPosted: Tue 05 May '09 23:06    Post subject: Reply with quote

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

PostPosted: Tue 05 May '09 23:23    Post subject: Reply with quote

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

PostPosted: Wed 06 May '09 19:18    Post subject: Reply with quote

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

PostPosted: Wed 06 May '09 19:51    Post subject: Reply with quote

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


Reply to topic   Topic: Virtual Hosting Help Requested View previous topic :: View next topic
Post new topic   Forum Index -> Apache