Having Issues with Apache config file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Having Issues with Apache config file

bruce
Hi.

New to Apache//Laravel. Trying to setup a simple test site for
Laravel, running on Centos8 with Apache.

I'm getting a 403 forbidden error. I've tried a few different mods to
the condif file, still having the same error. The basic config file
,as well as the dir/layout follows:


trying to setup/run a basic test laravel/apache app
I'm getting some sort of forbidden err (403) I believe

I'm running with the ipaddress

http://161.35.180.212/ltest  <<<



## laravel_project.conf
NameVirtualHost *:80
Listen 80

<VirtualHost *:80>
   # VirtualHost file to handle aliases

    #trying to simplify for test laravel app

    # VirtualHost file to handle aliases

    Alias /ltest /var/www/html/laravel_test


    #ServerAdmin admin@1.2.3.4
    #ServerName laravel_test
    #ServerAlias ltest.com

    DocumentRoot "/var/www/html/laravel_test"

    <Directory /var/www/html/laravel_test>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            #Order allow,deny
            #allow from all
            Require all granted
    </Directory>


    # Define where the logs go and what they're called...
    ErrorLog "logs/testsite-error_log"
    CustomLog "logs/testsite-access_log" common

</VirtualHost>



the laravel test app is in the following dir

/var/www/html/laravel_test

there's also a
/var/www/html/laravel_test/public
/var/www/html/laravel_test/public/index.php


Thoughts/Comments are welcome

thanks
-bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Having Issues with Apache config file

Jonathon Koyle
Have you checked your error or access loss for any additional information?  I would also verify that the directory tree has the right SE Linux labels, that looks like the default root, but it never hurts to check.  'ls -Z' will give the labels, it should include something like httpd_t I believe.

On Thu, Jun 25, 2020, 3:54 PM bruce <[hidden email]> wrote:
Hi.

New to Apache//Laravel. Trying to setup a simple test site for
Laravel, running on Centos8 with Apache.

I'm getting a 403 forbidden error. I've tried a few different mods to
the condif file, still having the same error. The basic config file
,as well as the dir/layout follows:


trying to setup/run a basic test laravel/apache app
I'm getting some sort of forbidden err (403) I believe

I'm running with the ipaddress

http://161.35.180.212/ltest  <<<



## laravel_project.conf
NameVirtualHost *:80
Listen 80

<VirtualHost *:80>
   # VirtualHost file to handle aliases

    #trying to simplify for test laravel app

    # VirtualHost file to handle aliases

    Alias /ltest /var/www/html/laravel_test


    #ServerAdmin [hidden email]
    #ServerName laravel_test
    #ServerAlias ltest.com

    DocumentRoot "/var/www/html/laravel_test"

    <Directory /var/www/html/laravel_test>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            #Order allow,deny
            #allow from all
            Require all granted
    </Directory>


    # Define where the logs go and what they're called...
    ErrorLog "logs/testsite-error_log"
    CustomLog "logs/testsite-access_log" common

</VirtualHost>



the laravel test app is in the following dir

/var/www/html/laravel_test

there's also a
/var/www/html/laravel_test/public
/var/www/html/laravel_test/public/index.php


Thoughts/Comments are welcome

thanks
-bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Having Issues with Apache config file

bruce
Hey Group,

Thanks for the replies!

This was a basic/simple error... The updated conf file in the
sites-available, wasn't symbolically linked to the sites-enabaled dir!

as homer simpson said.. "DOH!!"

paired programming is sometimes useful!

On Sun, Jun 28, 2020 at 2:39 PM Jonathon Koyle <[hidden email]> wrote:

>
> Have you checked your error or access loss for any additional information?  I would also verify that the directory tree has the right SE Linux labels, that looks like the default root, but it never hurts to check.  'ls -Z' will give the labels, it should include something like httpd_t I believe.
>
> On Thu, Jun 25, 2020, 3:54 PM bruce <[hidden email]> wrote:
>>
>> Hi.
>>
>> New to Apache//Laravel. Trying to setup a simple test site for
>> Laravel, running on Centos8 with Apache.
>>
>> I'm getting a 403 forbidden error. I've tried a few different mods to
>> the condif file, still having the same error. The basic config file
>> ,as well as the dir/layout follows:
>>
>>
>> trying to setup/run a basic test laravel/apache app
>> I'm getting some sort of forbidden err (403) I believe
>>
>> I'm running with the ipaddress
>>
>> http://161.35.180.212/ltest  <<<
>>
>>
>>
>> ## laravel_project.conf
>> NameVirtualHost *:80
>> Listen 80
>>
>> <VirtualHost *:80>
>>    # VirtualHost file to handle aliases
>>
>>     #trying to simplify for test laravel app
>>
>>     # VirtualHost file to handle aliases
>>
>>     Alias /ltest /var/www/html/laravel_test
>>
>>
>>     #ServerAdmin admin@1.2.3.4
>>     #ServerName laravel_test
>>     #ServerAlias ltest.com
>>
>>     DocumentRoot "/var/www/html/laravel_test"
>>
>>     <Directory /var/www/html/laravel_test>
>>             Options Indexes FollowSymLinks MultiViews
>>             AllowOverride All
>>             #Order allow,deny
>>             #allow from all
>>             Require all granted
>>     </Directory>
>>
>>
>>     # Define where the logs go and what they're called...
>>     ErrorLog "logs/testsite-error_log"
>>     CustomLog "logs/testsite-access_log" common
>>
>> </VirtualHost>
>>
>>
>>
>> the laravel test app is in the following dir
>>
>> /var/www/html/laravel_test
>>
>> there's also a
>> /var/www/html/laravel_test/public
>> /var/www/html/laravel_test/public/index.php
>>
>>
>> Thoughts/Comments are welcome
>>
>> thanks
>> -bruce
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]