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: problem setting up virtual hosts Page Previous  1, 2
Author
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Fri 23 May '08 14:44    Post subject: Reply with quote

Can you paste the exact error message? Does the virtualhost work without any scripts(php,html) in it?
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Fri 23 May '08 18:05    Post subject: Reply with quote

Quote:
Can you paste the exact error message?



Sorry, I'm lost!!

What error message? (from what)

*******************************************

Quote:
Does the virtualhost work without any scripts(php,html) in it?


Totally lost!
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Sat 24 May '08 13:09    Post subject: Reply with quote

I mean does apache gives some error when you type http://skip/ , or it shows the same directory as http://localhost/ ?
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Sat 24 May '08 15:12    Post subject: Reply with quote

http://skip brings up:

Quote:
http://skip/wamp/

Not Found

The requested URL /wamp/ was not found on this server.


Look carefully at the input URL and result URL.

Http://skip/index.html brings up correct page.
This tells me the dir is not in the path.


http://skip/index.php brings up:

Quote:
The requested URL /wamp/ was not found on this server.
[/quote]

Why it adds /wamp/, I don't know.

access.log in g:/skip/logs/access.log

Quote:
[Sat May 24 08:36:30 2008] [error] [client 127.0.0.1] File does not exist: G:/skip/wamp



I have remed out everything but skip to miniumize problem.

FYI


httpd.conf file

DocumentRoot "g:/wamp/www/"


<Directory "g:/wamp/www/">

Why is it that httpd.con file shows DocumentRoot "g:/wamp/www/" and <Directory "g:/wamp/www/"> in quote marks and the httpd-vhosts.conf file does not. Confused
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Sat 24 May '08 15:20    Post subject: Reply with quote

Just delete all the html and php files that come with the wamp package.
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Sun 25 May '08 2:02    Post subject: Reply with quote

Whats that going to accomplish??
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Wed 28 May '08 13:14    Post subject: Reply with quote

Probably the default html or php file that comes with WAMP is looking for some dirs that are missing. Ofcourse you can place your own stuff that will work flawlessly without these files.
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Wed 28 May '08 16:42    Post subject: Reply with quote

Your half right.

The index.html files do not contain a path. I simply modified them to shoe which dir they are loading from.


index.php is a problem.

I really don't want to delete them. They are all the same and need a simple modification. I don't know what pathe to use in the vir dirs

They contain the path "wamp" which i believe is the problem.

<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/wamp/');
exit;
?>

In the skip dir I changed index.php file, "wamp" to "skip" and that did't work.

index.* files should load automatically. There is something sill wrong with the path when vhosts file is enabled.



Something is wrong with the wamp installation Sad
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Wed 28 May '08 19:26    Post subject: Reply with quote

There is nothing wrong with the installation - /wamp/ is subdirectory, not vhost.
Im not 100% sure, but if you want to use the vhost skip instead of the subdirectory /wamp/ you must replace the line
Code:
header('Location: '.$uri.'/wamp/');
with
Code:
header('Location: '.'http://skip/');

BUT i have no idea why you need these files since they are not needed for any script or application.
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Wed 28 May '08 21:37    Post subject: Reply with quote

I think they are a good way to test each website dir. Once they work, I will remove them.

Index.html is not loading. PHP files are not running.

The modification you gave didn't work.

http://skip shows

Quote:
The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept cookies.


cookies are on


If you enter http://xyz.com The index.xxx should open.

This is not happening when vhosts enabled. Confused

http://wamp/www brings up the apache screen (index.php) until vhosts is enabled.
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Wed 28 May '08 23:29    Post subject: Reply with quote

I cant help you more via the forums, because looks like your installation is really messed up, but i cant tell you exactly where.
The only suggestion i can make right now is to uninstall everything and use AppServ - its very easy and work flawlessly out-of-the-box on every single box i have tested it on even with vhosts enabled.
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Thu 29 May '08 0:38    Post subject: Reply with quote

Thanks for trying.

Perhaps someone else will respond to theses posts with different ideas.

I looked at AppServ and it does not address stinking Vista which I use.

Also I can not tell what year the last version was released.
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Thu 29 May '08 1:38    Post subject: Reply with quote

I used AppServ with vista 32bit and it worked flawlessly what issues do you have under vista?
You can see the post date on the front page:
Quote:
Posted on Saturday, May 10 @ 00:59:41 ICT by apples

They usually release two versions - the latest stable versions of apache,php,mysql and another with the latest dev versions.
Back to top
rob62



Joined: 22 May 2007
Posts: 54
Location: mi

PostPosted: Fri 30 May '08 3:28    Post subject: Reply with quote

With Vista, it's always "mama may I?"
I shut UAC off
Back to top


Reply to topic   Topic: problem setting up virtual hosts View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page Previous  1, 2