My contemplations and diurnal novelties are publicized here

Archive for the ‘Apache’ Category

How to create Virtual Host in Apache on multiple ports


You need to modify the httpd.conf file located at C:\Program Files (x86)\Zend\Apache2\conf. All you have to do place the lines posted below after #Listen 12.34.56.78: 8080. 

Listen 8080
NameVirtualHost *:8080

<VirtualHost *:8080>
ServerName ubl-ois
DocumentRoot “D:\Program Files (x86)\Zend\Apache2\htdocs\v0.8\public”

<Directory “D:\Program Files (x86)\Zend\Apache2\htdocs\v0.8\public”>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Listen 8081

<VirtualHost *:8081>
ServerName ubl-ois-beu
DocumentRoot “D:\Program Files (x86)\Zend\Apache2\htdocs\BEU\public”

<Directory “D:\Program Files (x86)\Zend\Apache2\htdocs\BEU\public”>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Connection reset while using DOMPDF on production server


Here is the solution (I am using XAMPP 1.7.1) :-

In httpd.conf located in apache/conf/ search

#LoadModule rewrite_module modules/mod_rewrite.so

if its commented using # do UN-comment it

then open dompdf_config.inc.php file

and find DOMPDF_PDF_BACKEND

if it set to auto change it to smth like below

define(“DOMPDF_PDF_BACKEND”, “auto”);   –>  define(“DOMPDF_PDF_BACKEND”, “smth”);

For further information read below:-

  1. http://www.dashinteractive.net/dompdf/index.php?v=1776040
  2. https://groups.google.com/forum/?fromgroups#!topic/dompdf/tjclTocqLkE
%d bloggers like this: