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: Apache 2.4.9 VirtualHost and Directory ?
Author
PeroKC



Joined: 26 Jun 2012
Posts: 3
Location: Croatia, Koprivnica

PostPosted: Wed 23 Apr '14 23:18    Post subject: Apache 2.4.9 VirtualHost and Directory ? Reply with quote

Hello people,

I have a little problem with VirtualHosts and Directory directive. I am working on a Wordpress site and I set up permalinks which obviously gives me 404 not found errors. I enabled mod_rewrite and uncommented Include conf/extra/httpd-vhosts.conf. After this I went into httpd-vhosts.conf and created virtual host like so

<VirtualHost localhost/dts:80>
ServerName localhost
DocumentRoot d:/stranice/dts
<Directory "d:/Stranice/dts/">
AllowOverride All
</Directory>
</VirtualHost>

I am using .htaccess from wordpress to rewrite links and when I put <Directory> directive out of <VirtualHost> directive everything works but when <Directory> directive is inside <VirtualHost> i again get 404 not found errors.

If anyone know what is wrong I would really appreciate it.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Apr '14 15:36    Post subject: Reply with quote

Your config need to be different.

<VirtualHost localhost/dts:80>

has to be

<VirtualHost *:80>

Than http://localhost will display the (parsed) content of d:/Stranice/dts/
Back to top


Reply to topic   Topic: Apache 2.4.9 VirtualHost and Directory ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache