![]() |
|
|||||||
| FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
What on this line in the main httpd:
#Virtual hosts #Include conf/extra/httpd-vhosts.conf And post the: /usr/home/ed/wwwgeo/.htaccess --- file This rewrite rule isn't working: RewriteEngine on RewriteCond %{HTTP_HOST} !^test.pulsar.bg [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://test.pulsar.bg:88/$1 [L,R] |
|
||||
|
in main httpd.conf is commented
Code:
# Virtual hosts #Include etc/apache22/extra/httpd-vhosts.conf about .htaccess I have posted it ![]() here it is again Code:
Options +Indexes |
|
|||
|
"my httpd.conf is almost default, I have only changed default options -indexes, real servername, listen port ... and such things... no vhosts in main file.
For vhosts I have one file in /usr/local/etc/Includes/. Here it is." And you have : # Virtual hosts #Include etc/apache22/extra/httpd-vhosts.conf _________________________________ Anyway Try: <VirtualHost *:88> ServerName pulsartest.game-host.org DocumentRoot /usr/home/ed/wwwgeo <Directory "/usr/home/ed/wwwgeo"> RewriteEngine On Options FollowSymLinks Options All AllowOverride All Allow from alll </Directory> </VirtualHost> |
|
|||
|
Let's move from the <Directory> Container:
<VirtualHost *:88> ServerName pulsartest.game-host.org DocumentRoot /usr/home/ed/wwwgeo RewriteEngine On Options FollowSymLinks <Directory "/usr/home/ed/wwwgeo"> Options All AllowOverride All Allow from All </Directory> </VirtualHost> |
|
||||
|
done...
same result - the page opens, but error is still logged: Code:
[Sat Jul 19 19:39:31 2008] [error] [client 77.70.66.90] client denied by server configuration: /usr/home/ed/wwwgeo/.htaccess |
|
|||
|
Run this:
/usr/local/apache2/bin/httpd -S |
|
||||
|
Code:
[root@test /usr/local/etc/apache22]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:88 is a NameVirtualHost
default server test.pulsar.bg (/usr/local/etc/apache22/Includes/wwwpulsarbg.conf:7)
port 88 namevhost test.pulsar.bg (/usr/local/etc/apache22/Includes/wwwpulsarbg.conf:7)
port 88 namevhost pulsartest.game-host.org (/usr/local/etc/apache22/Includes/wwwpulsarbg.conf:78)
Syntax OK
|
|
|||
|
(It's been a long day)
How has game-host.org been configured to redirect pulsartest.game-host.org to your server? |
|
|||
|
213.130.70.6 = [ pulsar.bg ]
|
|
|||
|
This has nothing to do with Apache.
|
|
|||
|
What the the DocumentRoot set for in httpd.conf... and I mean for the main Apache config, not for your vhost defined above.
Reason I ask is because if your main DocumentRoot is set to something and you set a vhost oustide of that, you might have problems
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
|
Just for kicks, set it to /usr/home, restart apache, and see what you get.
I keep all my hosts on a /www filesystem, so an example... Main DocumentRoot is /www DocumentRoot for vhosts is /www/<username>/<url>
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
|
pulsartest.game-host.org isn't yours and you don't control it. Why are you using it in the Vhost file? What is the hostname of the server?
|
|
||||
|
pulsartest.game-host.org is mine
![]() game-host.org is not hostname of the server is test.pulsar.bg from rc.conf Code:
hostname="test.pulsar.bg" ifconfig_vr0="inet 78.142.42.147/28" Last edited by edhunter; 19th July 2008 at 09:07 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| error while installing apache | Nk2Network | OpenBSD Packages and Ports | 4 | 13th April 2009 08:45 PM |
| Upgrade Apache 1.3 mod_ssl to Apache 2.2 | beandip | FreeBSD Ports and Packages | 11 | 26th March 2009 08:12 PM |
| Apache 2.2 + vhosts | DNAeon | FreeBSD Ports and Packages | 12 | 16th February 2009 05:02 PM |
| pf allow ftp access | ijk | FreeBSD Security | 9 | 25th August 2008 04:12 AM |
| CD Access in KDE | Scott | FreeBSD General | 10 | 13th May 2008 05:48 AM |