[pm-h] blogging with blosxom

Julian Brown jlbprof at gmail.com
Tue Aug 14 08:12:13 PDT 2018


Create a file in /etc/apache2/sites-available

Name it mysite.conf

# assuming your static files are in /home/mysite/public_html
# and your bloxsum is in /home/mysite/cgi-bin

<VirtualHost *:80>
    SetEnv PERL5LIB /where your PERL5 stuff is, if you need it, if you dont
remove it

    <Directory /home/mysite/public_html>
        Options FollowSymlinks
        Require all granted
        AllowOverride all
        Allow from all
    </Directory>

    <Directory /home/mysite/cgi-bin>
        Options +ExecCGI
        AddHandler cgi-script .cgi .pl
        Require all granted
        AllowOverride all
        Allow from all
    </Directory>

    # The ServerName directive sets the request scheme, hostname and port
that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com

    ServerAdmin webmaster at localhost
    DocumentRoot /home/mysite/public_html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ScriptAlias "/cgi-bin/" "/home/mysite/cgi-bin/"

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

The virtual host <*:80> will put it on all tcp/ip addresses including
127.0.0.1, and your public ip.

Then in

/etc/apache2/sites-enabled

ln -s /etc/apache2/sites-available/mysite.conf
/etc/apache2/sites-enabled/mysite.conf

Put some test index.html in /home/mysite/public_html

then try http://localhost/index.html

and see if it responds.

if not go to the logs



On Tue, Aug 14, 2018 at 10:03 AM <rlharris at oplink.net> wrote:

> On Tue, August 14, 2018 13:35, Julian Brown wrote:
> > If it is only configured for localhost, there will be more work you need
> > to do.
> >
> > Do you plan to have this available to the public?  That is you want real
> > webtraffic driven to your site?
>
> Yes; public.  That is why I am going to use a domain name www.myblog.org
> or whatever, not www.mysite.org/blog.
>
> I would like to have the blog display also on localhost, for testing of
> formats and so forth.
>
> RLH
> _______________________________________________
> Houston mailing list
> Houston at pm.org
> http://mail.pm.org/mailman/listinfo/houston
> Website: http://houston.pm.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/houston/attachments/20180814/f562d0dd/attachment-0001.html>


More information about the Houston mailing list