<div dir="ltr"><div><font face="monospace, monospace">Create a file in /etc/apache2/sites-available</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Name it mysite.conf</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"># assuming your static files are in /home/mysite/public_html</font></div><div><font face="monospace, monospace"># and your bloxsum is in /home/mysite/cgi-bin</font></div><div><br></div><div><font face="monospace, monospace"><VirtualHost *:80></font></div><div><font face="monospace, monospace">    SetEnv PERL5LIB /where your PERL5 stuff is, if you need it, if you dont remove it</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    <Directory /home/mysite/public_html></font></div><div><font face="monospace, monospace">        Options FollowSymlinks</font></div><div><font face="monospace, monospace">        Require all granted</font></div><div><font face="monospace, monospace">        AllowOverride all</font></div><div><font face="monospace, monospace">        Allow from all</font></div><div><font face="monospace, monospace">    </Directory></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    <Directory /home/mysite/cgi-bin></font></div><div><font face="monospace, monospace">        Options +ExecCGI</font></div><div><font face="monospace, monospace">        AddHandler cgi-script .cgi .pl</font></div><div><font face="monospace, monospace">        Require all granted</font></div><div><font face="monospace, monospace">        AllowOverride all</font></div><div><font face="monospace, monospace">        Allow from all</font></div><div><font face="monospace, monospace">    </Directory></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    # The ServerName directive sets the request scheme, hostname and port that</font></div><div><font face="monospace, monospace">    # the server uses to identify itself. This is used when creating</font></div><div><font face="monospace, monospace">    # redirection URLs. In the context of virtual hosts, the ServerName</font></div><div><font face="monospace, monospace">    # specifies what hostname must appear in the request's Host: header to</font></div><div><font face="monospace, monospace">    # match this virtual host. For the default virtual host (this file) this</font></div><div><font face="monospace, monospace">    # value is not decisive as it is used as a last resort host regardless.</font></div><div><font face="monospace, monospace">    # However, you must set it for any further virtual host explicitly.</font></div><div><font face="monospace, monospace">    #ServerName <a href="http://www.example.com">www.example.com</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    ServerAdmin webmaster@localhost</font></div><div><font face="monospace, monospace">    DocumentRoot /home/mysite/public_html</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,</font></div><div><font face="monospace, monospace">    # error, crit, alert, emerg.</font></div><div><font face="monospace, monospace">    # It is also possible to configure the loglevel for particular</font></div><div><font face="monospace, monospace">    # modules, e.g.</font></div><div><font face="monospace, monospace">    #LogLevel info ssl:warn</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    ErrorLog ${APACHE_LOG_DIR}/error.log</font></div><div><font face="monospace, monospace">    CustomLog ${APACHE_LOG_DIR}/access.log combined</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    ScriptAlias "/cgi-bin/" "/home/mysite/cgi-bin/"</font></div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    # For most configuration files from conf-available/, which are</font></div><div><font face="monospace, monospace">    # enabled or disabled at a global level, it is possible to</font></div><div><font face="monospace, monospace">    # include a line for only one particular virtual host. For example the</font></div><div><font face="monospace, monospace">    # following line enables the CGI configuration for this host only</font></div><div><font face="monospace, monospace">    # after it has been globally disabled with "a2disconf".</font></div><div><font face="monospace, monospace">    #Include conf-available/serve-cgi-bin.conf</font></div><div><font face="monospace, monospace"></VirtualHost></font></div></div><div><br></div><div>The virtual host <*:80> will put it on all tcp/ip addresses including 127.0.0.1, and your public ip.</div><div><br></div><div>Then in</div><div><br></div><div>/etc/apache2/sites-enabled</div><div><br></div><div>ln -s /etc/apache2/sites-available/mysite.conf /etc/apache2/sites-enabled/mysite.conf</div><div><br></div><div>Put some test index.html in /home/mysite/public_html</div><div><br></div><div>then try <a href="http://localhost/index.html">http://localhost/index.html</a></div><div><br></div><div>and see if it responds.</div><div><br></div><div>if not go to the logs</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 14, 2018 at 10:03 AM <<a href="mailto:rlharris@oplink.net">rlharris@oplink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, August 14, 2018 13:35, Julian Brown wrote:<br>
> If it is only configured for localhost, there will be more work you need<br>
> to do.<br>
><br>
> Do you plan to have this available to the public?  That is you want real<br>
> webtraffic driven to your site?<br>
<br>
Yes; public.  That is why I am going to use a domain name <a href="http://www.myblog.org" rel="noreferrer" target="_blank">www.myblog.org</a><br>
or whatever, not <a href="http://www.mysite.org/blog" rel="noreferrer" target="_blank">www.mysite.org/blog</a>.<br>
<br>
I would like to have the blog display also on localhost, for testing of<br>
formats and so forth.<br>
<br>
RLH<br>
_______________________________________________<br>
Houston mailing list<br>
<a href="mailto:Houston@pm.org" target="_blank">Houston@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/houston" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/houston</a><br>
Website: <a href="http://houston.pm.org/" rel="noreferrer" target="_blank">http://houston.pm.org/</a><br>
</blockquote></div>