i get:
Forbidden

You don't have permission to access /weewx on this server.


i ran the following:


 $ sudo ln -s /etc/apache2/conf-available/weewx.conf 
/etc/apache2/conf-enabled/weewx.conf

weewx@raspberrypi:~ $ sudo /etc/init.d/apache2 restart

[ ok ] Restarting apache2 (via systemctl): apache2.service.


weewx@raspberrypi:/etc/apache2/conf-available $ ls -al

total 32

drwxr-xr-x 2 root root 4096 Aug 14 23:53 .

drwxr-xr-x 8 root root 4096 Aug 14 01:43 ..

-rw-r--r-- 1 root root  315 Jul  5 21:22 charset.conf

-rw-r--r-- 1 root root 3224 Jul  5 21:22 localized-error-pages.conf

-rw-r--r-- 1 root root  189 Jul  5 21:22 other-vhosts-access-log.conf

-rw-r--r-- 1 root root 2190 Jul 20 06:41 security.conf

-rw-r--r-- 1 root root  455 Jul  5 21:22 serve-cgi-bin.conf

-rw-r--r-- 1 root root  225 Aug 14 23:45 weewx.conf





On Sunday, August 14, 2016 at 6:22:09 PM UTC-5, Jimmy r wrote:
>
>
>> Okay html passes.
>>
>> /etc/apache2 doesn't (make sense to me)
>>
>> My understanding is that your config.d (I'm assuming it's named
>> config.d in your setup) is not visible to apache2...
>>
>> alias /weewx /home/weewx/public_html
>> <Directory /home/weewx/public_html>
>>   Options FollowSymlinks
>>   AllowOverride None
>> # for apache 2.2
>>   Order allow,deny
>>   Allow from all
>> # for apache 2.4
>> #  Require all granted
>> </Directory>
>>
>> By convention, any of those specific config files, should live under
>> the /etc/apache2/conf-available directory and then be symlinked from
>> /etc/apache2/conf-enabled. That way apache2 knows to include it.
>>
>> wherever that file is there should be a link to it from
>> /etc/apache2/conf-enabled, I don't see one under your listing so it
>> needs a symlink to it.
>>
>> rename it to weewx.conf then copy it to /etc/apache2/conf-available/
>>
>> then
>> ln -s /etc/apache2/conf-available/weewx.conf
>> /etc/apache2/conf-enabled/weewx.conf
>>
>> then restart apache2 and fingers crossed.
>>
>> p.s. use dir -al (or ls -al)  I like to see it all ;-)
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to