erich.wanker Posted October 7, 2014 Share Posted October 7, 2014 Hello folks... i want to test my unigui.dll with namebased (i have just 1 IP-Adress) subdomains on Apache Apache/2.4.3 (Win32) PHP/5.4.7 I want 2 folders : c:/VersatileServer/htdocs/customer1/ .. here i store UniGui.Dll / ext-4.2.1.883 Folder / uni-folder / log / cache / temp.. c:/VersatileServer/htdocs/customer2/ .. here i store UniGui.Dll / ext-4.2.1.883 Folder / uni-folder / log / cache / temp.. what must i change in "httpd.conf" and in "httpd-vhosts.conf" to start the different uniGui.dll ? www.customer1.domain.com www.customer2.domain.com My httpd.conf-File: ServerRoot "C:/VersatileServer/apache" Listen 80 LoadModule access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_core_module modules/mod_authn_core.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule cgi_module modules/mod_cgi.so LoadModule dav_lock_module modules/mod_dav_lock.so # LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule headers_module modules/mod_headers.so LoadModule include_module modules/mod_include.so LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule cache_disk_module modules/mod_cache_disk.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so # LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User daemon Group daemon </IfModule> </IfModule> ServerAdmin my@mail.adress ServerName localhost:80 DocumentRoot "C:/VersatileServer/htdocs" <Directory "/VersatileServer/htdocs"> Options ExecCGI # Options FollowSymLinks # AllowOverride All AllowOverride None Order allow,deny Deny from all Require all granted </Directory> AcceptFilter http none <Directory "C:/VersatileServer/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI Order allow,deny Allow from all </Directory> <IfModule dir_module> DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \ default.php default.pl default.cgi default.asp default.shtml default.html default.htm \ home.php home.pl home.cgi home.asp home.shtml home.html home.htm </IfModule> <Files ".ht*"> Require all denied </Files> ErrorLog "logs/error.log" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "logs/access.log" combined </IfModule> <IfModule alias_module> ScriptAlias /cgi-bin/ "C:/VersatileServer/cgi-bin/" </IfModule> <IfModule cgid_module> </IfModule> <Directory "C:/VersatileServer/cgi-bin"> AllowOverride None Options None Require all granted </Directory> <IfModule mime_module> TypesConfig "conf/mime.types" AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddHandler cgi-script .cgi .pl .asp AddHandler isapi-handler .dll AddType text/html .shtml AddOutputFilter INCLUDES .shtml </IfModule> <IfModule mime_magic_module> MIMEMagicFile "conf/magic" </IfModule> Include "conf/extra/httpd-xampp.conf" Include "conf/extra/httpd-mpm.conf" Include "conf/extra/httpd-multilang-errordoc.conf" Include "conf/extra/httpd-autoindex.conf" Include "conf/extra/httpd-languages.conf" Include "conf/extra/httpd-userdir.conf" Include "conf/extra/httpd-info.conf" Include "conf/extra/httpd-vhosts.conf" Include "conf/extra/httpd-proxy.conf" Include "conf/extra/httpd-default.conf" Include "conf/extra/httpd-ssl.conf" <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> <IfModule mod_proxy.c> <IfModule mod_proxy_ajp.c> Include "conf/extra/httpd-ajp.conf" </IfModule> </IfModule> My NOT WORKING vhost-config: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "C:/VersatileServer/htdocs/customer1" ServerName customer1.localhost ServerAlias www.customer1.localhost ErrorLog "logs/customer1.localhost-error.log" CustomLog "logs/customer1.localhost-access.log" combined </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/VersatileServer/htdocs/customer2" ServerName customer2.localhost ServerAlias www.customer2.localhost ErrorLog "logs/customer2.localhost-error.log" CustomLog "logs/customer2.localhost-access.log" combined </VirtualHost> Thanx for suggestions and nice greetings from AUSTRIA :-) Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted October 7, 2014 Author Share Posted October 7, 2014 OK.. it works ... i changed "localhost" to the right domainname in VHost-Config-file ... :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.