www.webdeveloper.com
Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32

Thread: Viritual host

  1. #31
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    67
    http.conf:
    Code:
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    
    ThreadsPerChild 250
    MaxRequestsPerChild  0
    
    
    ServerRoot "C:/Program Files/xampp/apache"
    
    Listen 80
    
    #
    # Dynamic Shared Object (DSO) Support
    #
    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.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 # don't load because of mod_autoindex_color.so
    #LoadModule bucketeer_module modules/mod_bucketeer.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule expires_module modules/mod_expires.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule include_module modules/mod_include.so
    LoadModule info_module modules/mod_info.so
    LoadModule isapi_module modules/mod_isapi.so
    LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.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 proxy_balancer_module modules/mod_proxy_balancer.so
    #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    #LoadModule speling_module modules/mod_speling.so
    LoadModule status_module modules/mod_status.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule ssl_module modules/mod_ssl.so
    
    LoadModule autoindex_color_module modules/mod_autoindex_color.so
    #LoadModule mysql_auth_module modules/mod_auth_mysql.so
    #LoadModule auth_remote_module modules/mod_auth_remote.so
    #LoadModule sspi_auth_module modules/mod_auth_sspi.so
    #LoadModule log_sql_module modules/mod_log_sql.so
    #LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
    #<IfModule ssl_module>
    #    LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
    #</IfModule>
    #LoadModule proxy_html_module modules/mod_proxy_html.so
    #LoadModule xmlns_module modules/mod_xmlns.so
    #LoadModule proxy_xml_module modules/mod_proxy_xml.so
    #LoadModule bw_module modules/mod_bw.so
    
    
    
    ServerAdmin admin@localhost
    
    
    ServerName localhost:80
    
    DocumentRoot "C:/Documents and Settings/Geir/My Documents/Web-design/"
    
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    
    
    
    
    <Directory "C:/Documents and Settings/Geir/My Documents/Web-design/">
       
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
     
        Options Indexes FollowSymLinks Includes ExecCGI
       
     
        AllowOverride All
    
        
        Order allow,deny
        Allow from all
    
    </Directory>
    
    
    <IfModule dir_module>
        DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
    </IfModule>
    
    
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
    </FilesMatch>
    
    
    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 common
    
    </IfModule>
    
    <IfModule alias_module>
      
    
        ScriptAlias /cgi-bin/ "C:/Program Files/xampp/cgi-bin/"
    
    </IfModule>
    
    #
    # "C:/Program Files/xampp/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "C:/Program Files/xampp/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    
    #Geirs tillegg
    Alias /GeirWd "C:\Documents and Settings\Geir\My Documents\Web-design"
    <Directory "C:\Documents and Settings\Geir\My Documents\Web-design">
    Options Indexes
    Order allow,deny
    Allow from all
    Options Indexes
    </Directory> 
    
    
    
       #!c:/program files/perl/perl
    
    
    DefaultType text/plain
    
    <IfModule mime_module>
       
        TypesConfig conf/mime.types
    
       
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
    
        
        AddHandler cgi-script .cgi
    
        # For files that include their own HTTP headers:
        #AddHandler send-as-is asis
    
        # For server-parsed imagemap files:
        #AddHandler imap-file map
    
        # For type maps (negotiated resources):
        #AddHandler type-map var
    
       AddType text/html .shtml
       AddOutputFilter INCLUDES .shtml
    </IfModule>
    
    EnableMMAP off
    EnableSendfile off
    
    
    
    # XAMPP specific settings
    Include conf/extra/httpd-xampp.conf
    
    # Server-pool management (MPM specific)
    # Include conf/extra/httpd-mpm.conf
    
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    
    # Language settings
    Include conf/extra/httpd-languages.conf
    
    # User home directories
    Include conf/extra/httpd-userdir.conf
    
    # Real-time info on requests and configuration
    Include conf/extra/httpd-info.conf
    
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    
    # Local access to the Apache HTTP Server Manual
    Include conf/extra/httpd-manual.conf
    
    # Distributed authoring and versioning (WebDAV)
    Include conf/extra/httpd-dav.conf
    
    # Various default settings
    Include conf/extra/httpd-default.conf
    
    # Secure (SSL/TLS) connections
    Include conf/extra/httpd-ssl.conf
    
    #
    # Note: The following must must be present to support
    #       starting without SSL on platforms with no /dev/random equivalent
    #       but a statically compiled-in mod_ssl.
    #
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    ..had to cut away much of the comments

  2. #32
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    67
    httpd-vhosts.conf:
    Code:
    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at 
    # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    
    #<Directory "C:\Documents and Settings\Geir\My Documents\Web-design">
    #Options Indexes FollowSymLinks MultiViews
    #AllowOverride None
    #Order allow,deny
    #allow from all</Directory>
    
    #
    # Use name-based virtual hosting.
    #
    ##NameVirtualHost *:80
    
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #
    <VirtualHost *:80>
    ServerName localhost
    ServerAdmin youremail@domain
    #DocumentRoot "C:/Webserver/"
    DocumentRoot "C:/Documents and Settings/Geir/My Documents/Web-design/"
    #ServerPath "C:/Webserver/"
    ServerPath /
    #<Directory />
    #Options FollowSymLinks
    #AllowOverride None
    #</Directory>
    <Directory C:/Webserver/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </Directory>
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerAdmin youremail@domain
    DocumentRoot "C:/Documents and Settings/Geir/My Documents/Web-design/G-Sun 2009/"
    ServerName G-Sun2009
    ServerPath "/G-Sun 2009"
    <Directory "C:/Documents and Settings/Geir/My Documents/Web-design/G-Sun 2009/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </Directory>
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerAdmin youremail@domain
    DocumentRoot "C:/Documents and Settings/Geir/My Documents/Web-design/Flyt/"
    ServerName flyt
    ServerPath /Flyt
    <Directory "C:/Documents and Settings/Geir/My Documents/Web-design/Flyt/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </Directory>
    </VirtualHost> 
    
    ##<VirtualHost *:80>
    ##    ServerAdmin webmaster@dummy-host2.example.com
    ##    DocumentRoot /www/docs/dummy-host2.example.com
    ##    ServerName dummy-host2.example.com
    ##    ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
    ##    CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
    ##</VirtualHost>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles