# chcon -Rht httpd_sys_content_t <image directory>
ps. read this: https://wiki.centos.org/HowTos/SELinux/
# chcon -Rht httpd_sys_content_t <image directory>
ps. read this: https://wiki.centos.org/HowTos/SELinux/
/home/user/
which i wanted to expose to the web server for web access/home/user
directory# ll /home/
# chmod +x /home/user
# ll /home/
/home
directory./scrlib/apr
and ./scrlib/apr-util
respectively--with-included-apr
NameVirtualHost
setting and <VirtualHost>
entries in your apache configuration file.
[] [warn] VirtualHost 127.0.0.1:443 overlaps with VirtualHost 127.0.0.1:443, the first has precedence, perhaps you need a NameVirtualHost directive
[] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName mydomain1.ph
ServerAlias www.mydomain1.ph
DocumentRoot /usr/local/apache2/htdocs/
</VirtualHost>
<VirtualHost *:80>
ServerName mydomain2.ph
ServerAlias www.mydomain2.ph
DocumentRoot /usr/local/apache2/htdocs/mydomain2
</VirtualHost>
<VirtualHost *:443>
ServerName mydomain1.ph
ServerAlias www.mydomain1.ph
DocumentRoot /usr/local/apache2/htdocs/
SSLEngine on
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key
</VirtualHost>
<VirtualHost *:443>
ServerName mydomain1.ph
ServerAlias www.mydomain2.ph
DocumentRoot /usr/local/apache2/htdocs/mydomain2
SSLEngine on
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key
</VirtualHost>
<script language="JavaScript">window.location="http://x.x.x.x";</script>
<frameset frameborder="NO" cols="100%,*" rows="*" border="0" framespacing="0">
<frame name="topFrame" scrolling="auto" src="http://x.x.x.x" />
</frameset>
-A PREROUTING -d x.x.x.x -p tcp --dport 81 -j DNAT --to y.y.y.y:80
-A POSTROUTING -d y.y.y.y -p tcp --dport 80 -j SNAT --to x.x.x.x:81
NameVirtualHost *:80
<VirtualHost *:80>
ServerName alternate.mydomain.ph
DocumentRoot /usr/local/apache2/htdocs/alternate
</VirtualHost>
# ./configure
# make
# make install
php.ini-dist
to /usr/local/lib/php.ini
php.ini
file and set the following:extension_dir = "/usr/local/apache2/modules/"
# this is my apache modules directoryinclude_path = "/usr/local/lib/php
extension=php_mysql.so
extension=php_pgsql.so
/etc/ld.so.conf
file and add the following:/usr/local/lib
/usr/local/include
/usr/local/pgsql/lib
# ldconfig -v
httpd.conf
configuration fileLoadModule php5_module modules/libphp5.so
-AddType application/x-httpd-php .php
-AddType application/x-httpd-php-source .phps
-AddType application/x-httpd-php .phtml
<?php phpinfo(); ?>
![]() |
coldfusion's file not found error message |
<servlet>
<servlet-name>JSPServlet</servlet-name>
<servlet-class>jrun.jsp.JSPServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>keepGenerated</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>translationDisabled</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>cacheTags</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<!--
<servlet-mapping>
<servlet-name>JspLicenseServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<!--
<welcome-file>index.jsp</welcome-file>
-->
</welcome-file-list>
Got this while connecting to my mikrotik router via ssh Unable to negotiate with <ip address> port <ssh port>: no matching hos...