Hi all,
I'm having a small problem knowing which httpd.conf file to edit. The reason I'm asking this is for the fact that I'm running a PHP framework on my DA server. Normally all rules are set with a .htaccess file, but for the functionality that I want to integrate (with a subdomain) I need to edit my httpd.conf file to edit my virtual host entry.
To make more sense, this is what I do on my local windows system which has te be ported to my linux production server:
I saw that the httpd.conf user files are located under usr/local/directadmin/data/users/admin/httpd.conf, but at the top of te file it says that it is not smart to edit the file becouse the file will be overwritten once the user makes changes to this/her website. So where is the httpd.conf file that I may edit?
Thank you in advance
I'm having a small problem knowing which httpd.conf file to edit. The reason I'm asking this is for the fact that I'm running a PHP framework on my DA server. Normally all rules are set with a .htaccess file, but for the functionality that I want to integrate (with a subdomain) I need to edit my httpd.conf file to edit my virtual host entry.
To make more sense, this is what I do on my local windows system which has te be ported to my linux production server:
Code:
<VirtualHost 127.0.0.1>
ServerName netronix.local
DocumentRoot "C:/wamp/www/netronix/web"
DirectoryIndex index.php
Alias /sf C:/wamp/bin/php/php5.2.5/PEAR/data/symfony/web/sf
<Directory "C:/wamp/bin/php/php5.2.5/PEAR/data/symfony/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory "C:/wamp/www/netronix/web">
AllowOverride All
Allow from All
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName mijn.netronix.local
DocumentRoot "C:/wamp/www/netronix/web"
DirectoryIndex backend.php
Alias /sf C:/wamp/bin/php/php5.2.5/PEAR/data/symfony/web/sf
<Directory "C:/wamp/bin/php/php5.2.5/PEAR/data/symfony/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory "C:/wamp/www/netronix/web">
AllowOverride All
Allow from All
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ backend.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ backend.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
Thank you in advance