Page 1 of 1

LAMPP in Ubuntu 9.04

PostPosted: 15. July 2009 14:16
by belpyro
When I deploy XAMPP in Ubuntu and create new VirualHosts I have bug.
1. Unpack xampp to /opt/
2. Uncomment Include extra/xampp-vhosts.conf
3. Create
<VirtualHost *:80>
ServerName example.com
DocumentRoot /opt/lampp/htdocs/example.com/www
</VirtulalHost>

or

<VirtualHost example.com:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /opt/lampp/htdocs/example.com/www
</VirtulalHost> and set NameVirtualHost 127.0.0.1:80

If I try enter to site example.com then I go to http://example.com/xampp. Why? I have in this folder index.php file, but it does not call ((

Do you know what my problem?

Re: LAMPP in Ubuntu 9.04

PostPosted: 15. July 2009 14:20
by glitzi85
If you have
Code: Select all
NameVirtualHost 127.0.0.1:80

you must use
Code: Select all
<VirtualHost 127.0.0.1:80>

Then VirtualHost-Directive must match the NameVirtualHost-Directive, except you use *:80 in NameVirtualHost

And please clear your browser cache.

glitzi

Re: LAMPP in Ubuntu 9.04

PostPosted: 15. July 2009 14:31
by belpyro
glitzi85 wrote:And please clear your browser cache.

Yes. I has been cleared my browser cache. Not worked ((

glitzi85 wrote:If you have

Code: Select all
NameVirtualHost 127.0.0.1:80


you must use

Code: Select all
<VirtualHost 127.0.0.1:80>


On Windows it normal worked. May be Linux Apache work anything? ))

Re: LAMPP in Ubuntu 9.04

PostPosted: 15. July 2009 16:09
by glitzi85
You redirected the domain to 127.0.0.1 with the hosts-file?

Pleas try something like this: http://example.com/something_that_does_not_exist
then post the access.log and error.log files.

glitzi