On Fri, Jun 12, 2020 at 8:21 AM Tim via users
<users@lists.fedoraproject.org> wrote:
>
> On Fri, 2020-06-12 at 05:00 -0400, bruce wrote:
> > I've got a topic that's way off topic. It's dealing with
> > apache/vhost.
> > I'm screwing something up. Wondered if I can post it here.
>
> You may as well ask about the problem, then you'll know if people can
> help.  I use virtual hosting on Apache, I've been doing so for years.
>

Hi Tim,

Thanks for the reply.

The TLDR; -- Trying to set up the vhost block to be able to access a
test site built on an app called "open social" from/basedon Drupal.
The app is https://github.com/goalgorilla/open_social

I have a "test" vhost that kind of works, -- uses
Alias/DirectoryBlock/DocumentRoot, but it kept generating redirect
errs. Someone on the OpenSocial slack channel said to get rid of that
and .. But didn't say how to implement a correct config file.

Trial/Error sometimes not the most efficient approach.

The test url that currently generates a 403 is:
    http://161.35.180.212/social/

////////////////////////////////////////////
I've managed to generate the required files via Composer, and the
files are stored in the following dir:

/www/var/social

within the /www/var/social  (the files for open social are)

apache apache    109 Jun 11 03:34 .
apache apache    128 Jun 12 04:16 ..
apache apache   1858 Jun 11 03:33 composer.json
apache apache 365863 Jun 11 03:40 composer.lock
apache apache    602 Jun 11 03:33 .gitignore
apache apache   4096 Jun 11 03:40 html
apache apache   1826 Jun 11 03:33 README.md
apache apache   4096 Jun 11 03:40 vendor

within the /www/var/social/html  (the files for open social are)
drwxrwxr-x.  8 apache apache 4096 Jun 11 03:40 .
drwxrwxr-x.  4 apache apache  109 Jun 11 03:34 ..
-rw-rw-rw-.  1 apache apache  385 Jun 11 03:40 autoload.php
drwxrwxr-x. 14 apache apache 4096 Jun 11 03:40 core
-rw-rw-r--.  1 apache apache 1025 Jun 11 03:40 .csslintrc
-rw-rw-r--.  1 apache apache  357 Jun 11 03:40 .editorconfig
-rw-rw-r--.  1 apache apache  151 Jun 11 03:40 .eslintignore
-rw-rw-r--.  1 apache apache   41 Jun 11 03:40 .eslintrc.json
-rw-rw-r--.  1 apache apache 3858 Jun 11 03:40 .gitattributes
-rw-rw-r--.  1 apache apache 7878 Jun 11 03:40 .htaccess
-rw-rw-r--.  1 apache apache 2314 Jun 11 03:40 .ht.router.php
-rw-rw-r--.  1 apache apache  549 Jun 11 03:40 index.php
drwxrwxr-x. 29 apache apache 4096 Jun 11 03:40 libraries
drwxrwxr-x.  3 apache apache   21 Jun 11 03:33 modules
drwxrwxr-x.  3 apache apache   21 Jun 11 03:34 profiles
-rw-rw-r--.  1 apache apache 1594 Jun 11 03:40 robots.txt
drwxrwxr-x.  3 apache apache  112 Jun 11 03:34 sites
drwxrwxr-x.  3 apache apache   21 Jun 11 03:34 themes
-rw-rw-r--.  1 apache apache  848 Jun 11 03:40 update.php
-rw-rw-r--.  1 apache apache 4566 Jun 11 03:40 web.config


In order to test the app, I need to be able to have a valid
virtualhost to allow the user to access the site
http://1.2.3.4/??

the current   (doesn't work)!!
/etc/httpd/sites-available/virtualhosts.conf

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


#        Options Indexes FollowSymLinks MultiViews
 #        AllowOverride All
 #        Order allow,deny
 #        allow from all

#        DirectoryIndex index.html index.php
 #        Require all granted

    # Set the default document root for Apache (if the URL
    # doesn't start with "/foo" or "/oxwall")...
    #drupal cat DocumentRoot "/var/www/html"
    DocumentRoot "/var/www/social/html"


    # Stick your host name and domain below (commented out for now)...
    #ServerName somsiten...@somedomain.tld

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

So, I'm trying to get the virtualhost/apache to match the
dir/tree/files for the open social app to test the app.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to