The translation is temporarily closed for contributions due to maintenance, please come back later.

Translation

(itstool) path: sect3/indexterm
English
<primary>Django</primary>
Context English Persian State
Protocols h2 http/1.1
To enable <acronym>HTTP</acronym>2 over plaintext, use <acronym>h2</acronym> <acronym>h2c</acronym> <acronym>http</acronym>/1.1 in the <filename>httpd.conf</filename>.
Having the <acronym>h2c</acronym> here will allow plaintext <acronym>HTTP</acronym>2 data to pass on the system but is not recommended. In addition, using the <acronym>http</acronym>/1.1 here will allow fallback to the <acronym>HTTP</acronym>1.1 version of the protocol should it be needed by the system.
To enable <acronym>HTTP</acronym>2 for individual VirtualHosts, add the same line within the VirtualHost directive in either <filename>httpd.conf</filename> or <filename>httpd-ssl.conf</filename>.
Reload the configuration using the <command>apachectl</command> <parameter>reload</parameter> command and test the configuration either by using either of the following methods after visiting one of the hosted pages:
<prompt>#</prompt> <userinput>grep "HTTP/2.0" /var/log/httpd-access.log</userinput> <prompt>%</prompt> <userinput>top</userinput>
This should return something similar to the following:
192.168.1.205 - - [18/Oct/2020:18:34:36 -0400] "GET / HTTP/2.0" 304 -
192.0.2.205 - - [18/Oct/2020:19:19:57 -0400] "GET / HTTP/2.0" 304 -
192.0.0.205 - - [18/Oct/2020:19:20:52 -0400] "GET / HTTP/2.0" 304 -
192.0.2.205 - - [18/Oct/2020:19:23:10 -0400] "GET / HTTP/2.0" 304 -
The other method is using the web browser's built in site debugger or <command>tcpdump</command>; however, using either method is beyond the scope of this document.
Support for <acronym>HTTP</acronym>2 reverse proxy connections by using the <filename>mod_proxy_http2.so</filename> module. When configuring the ProxyPass or RewriteRules [P] statements, they should use h2:// for the connection.
Dynamic Websites
<primary>web servers</primary> <secondary>dynamic</secondary>
In addition to <application>mod_perl</application> and <application>mod_php</application>, other languages are available for creating dynamic web content. These include <application>Django</application> and <application>Ruby on Rails</application>.
Django
<primary>Python</primary>
<primary>Django</primary>
<application>Django</application> is a BSD-licensed framework designed to allow developers to write high performance, elegant web applications quickly. It provides an object-relational mapper so that data types are developed as <application>Python</application> objects. A rich dynamic database-access <acronym>API</acronym> is provided for those objects without the developer ever having to write <acronym>SQL</acronym>. It also provides an extensible template system so that the logic of the application is separated from the <acronym>HTML</acronym> presentation.
Django depends on <filename>mod_python</filename>, and an <acronym>SQL</acronym> database engine. In FreeBSD, the <package>www/py-django</package> port automatically installs <filename>mod_python</filename> and supports the <application>PostgreSQL</application>, <application>MySQL</application>, or <application>SQLite</application> databases, with the default being <application>SQLite</application>. To change the database engine, type <command>make config</command> within <filename>/usr/ports/www/py-django</filename>, then install the port.
Once <application>Django</application> is installed, the application will need a project directory along with the <application>Apache</application> configuration in order to use the embedded <application>Python</application> interpreter. This interpreter is used to call the application for specific <acronym>URL</acronym>s on the site.
To configure <application>Apache</application> to pass requests for certain <acronym>URL</acronym>s to the web application, add the following to <filename>httpd.conf</filename>, specifying the full path to the project directory:
&lt;Location "/"&gt;
SetHandler python-program
PythonPath "['<replaceable>/dir/to/the/django/packages/</replaceable>'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonAutoReload On
PythonDebug On
&lt;/Location&gt;
Refer to <uri xlink:href="https://docs.djangoproject.com">https://docs.djangoproject.com</uri> for more information on how to use <application>Django</application>.
Ruby on Rails
<primary>Ruby on Rails</primary>
<application>Ruby on Rails</application> is another open source web framework that provides a full development stack. It is optimized to make web developers more productive and capable of writing powerful applications quickly. On FreeBSD, it can be installed using the <package>www/rubygem-rails</package> package or port.
Refer to <uri xlink:href="http://guides.rubyonrails.org">http://guides.rubyonrails.org</uri> for more information on how to use <application>Ruby on Rails</application>.
File Transfer Protocol (<acronym>FTP</acronym>)
<primary><acronym>FTP</acronym> servers</primary>
The File Transfer Protocol (<acronym>FTP</acronym>) provides users with a simple way to transfer files to and from an <acronym>FTP</acronym> server. FreeBSD includes <acronym>FTP</acronym> server software, <application>ftpd</application>, in the base system.
FreeBSD provides several configuration files for controlling access to the <acronym>FTP</acronym> server. This section summarizes these files. Refer to <citerefentry><refentrytitle>ftpd</refentrytitle><manvolnum>8</manvolnum></citerefentry> for more details about the built-in <acronym>FTP</acronym> server.
The most important configuration step is deciding which accounts will be allowed access to the <acronym>FTP</acronym> server. A FreeBSD system has a number of system accounts which should not be allowed <acronym>FTP</acronym> access. The list of users disallowed any <acronym>FTP</acronym> access can be found in <filename>/etc/ftpusers</filename>. By default, it includes system accounts. Additional users that should not be allowed access to <acronym>FTP</acronym> can be added.

Loading…

No matching activity found.

Browse all component changes

Glossary

English Persian
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect3/indexterm
Source string location
book.translate.xml:58763
String age
11 months ago
Source string age
a year ago
Translation file
books/fa/handbook.po, string 9619