- Prof. Rossano Pablo Pinto - http://rossano.pr
- .br
1
A brief introduction to PHP and HTTPS in Apache A practical approach in arch linux
- Prof. Rossano Pablo Pinto
A brief introduction to PHP and HTTPS in Apache A practical - - PowerPoint PPT Presentation
A brief introduction to PHP and HTTPS in Apache A practical approach in arch linux Prof. Rossano Pablo Pinto 2017 - v0.9.2 Prof. Rossano Pablo Pinto - http://rossano.pr 1 o.br Agenda Introduction Installation HTTP 1.1 protocol
1
2
3
WEB Server WEB Client (Usually a WWW browser HTTP Requests/responses
4
– Observe that it shows disabled. So enable it for
5
2 Enters Resposta no próximo slide...
6
7
8
Message received: GET / HTTP/1.1 Host: localhost:9999 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Cookie: org.cups.sid=04e22f9a096c8e9570427c2febd7a56f
9
10
11
don't start with “/”. (See path examples with LoadModule)
pid)
requests using a sinlge connection
single connection
terminated
12
13
14
15
#LoadModule mpm_event_module modules/mod_mpm_event.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule php7_module modules/libphp7.so ... DirectoryIndex index.html index.php …. Include conf/extra/php7_module.conf
16
17
18
19
20
cp ca.crt /etc/httpd/conf/server.crt cp ca.key /etc/httpd/conf/server.key
ssl_module # SSL MODULE. Modules are used by SSL: log_config_module # Flexible logging of clients setenvif_module # Set internal environment variable socache_shmcb_module # Shared object cache provider
(According to “Required modules:” in extra/httpd-ssl.conf)
21
www.openssl.org/docs/apps/x509.html, httpd.apache.org/docs/current/mod/{mod_log_config.html, mod_socache_shmcb.html, mod_setenvif_module, mod_ssl.html}
22
– View Certificates (Tab Servers or Authorities)
– Select some certificate and click “View” – Select some certificate and click “Export” (use this file at the examples
below - replace server.crt with the file you saved at this step)
23
24