Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm editing /opt/lampp/etc/extra/httpd-vhosts.conf

I've added VirtualHost directive to this file

    ServerName rem
    DocumentRoot "/home/kir/www/rem/public"
    ErrorLog logs/rem-error_log
    CustomLog logs/rem-access_log common
    <Directory "/home/kir/www/rem/public">
      Options Indexes FollowSymLinks Includes execCGI
      AllowOverride None
      Order Allow,Deny
      Allow From All

Then I've created directory /home/kir/www/rem/public 0755 kir:kir

Then I've added rem to /etc/hosts/.

Then I've restarted xampp sudo /opt/lampp restart

When I'm trying to enter http://rem I'm being redirected to http://rem/xampp As I figured out redirect is produced by file which can be found at /opt/lampp/htdocs/index.php; this file redirects us to /xampp directory.

Please help me to figure out why DocumentRoot directive (and, probably other directives too) are ignored and Apache considers /opt/lampp/htdocs as DocumentRoot.

Thank you.

UPDATED: xampp is running apache2

share|improve this question
up vote 0 down vote accepted

My bad!

Including of httpd-vhosts.conf was commented in httpd.conf :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.