IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Apache Discussion :

Configurer apache pour intranet (wamp)


Sujet :

Apache

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2013
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Finance

    Informations forums :
    Inscription : Février 2013
    Messages : 15
    Par défaut Configurer apache pour intranet (wamp)
    Bonjour à tous !

    Je suis dans le cadre de mon apprentissage, mon but est de développer un site de reporting accessible sur toutes les machines.

    Malgré mes recherches je n'ai toujours pas trouvé le moyen de rendre mon site intranet !

    J'ai utilisé un wamp pour me faciliter la tache, j'ai modifier quelques ligne du fichier de config apache :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
     
    SetEnv PHPRC "{PHPPATH}"
     
    ServerRoot "{APACHEPATH}/"
    {LISTEN_VIRTUAL_HOST_PORT}
     
     
    # Timeout: The number of seconds before receives and sends time out.
    Timeout 300
     
     
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    KeepAlive On
     
     
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    MaxKeepAliveRequests 100
     
     
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    KeepAliveTimeout 5
     
     
    # UseCanonicalName: Determines how Apache constructs self-referencing 
    # URLs and the SERVER_NAME and SERVER_PORT variables.
    UseCanonicalName Off
     
     
    # This directive configures what you return as the Server HTTP response
    # Header.
    # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
    ServerTokens Full
     
     
    # Optionally add a line containing the server version and virtual host
    # name to server-generated pages (internal error documents, FTP directory 
    # listings, mod_status and mod_info output etc.
    ServerSignature On
     
     
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    HostnameLookups Off
     
    LogLevel warn
     
    AccessFileName .htaccess
     
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
     
     
     
     
    # ****************************************************************************************************************
    # MODULES
     
     
    #LoadModule actions_module "{APACHEPATH}/modules/mod_actions.so"
    LoadModule alias_module "{APACHEPATH}/modules/mod_alias.so"
    LoadModule asis_module "{APACHEPATH}/modules/mod_asis.so"
    LoadModule auth_basic_module "{APACHEPATH}/modules/mod_auth_basic.so"
    #LoadModule auth_digest_module "{APACHEPATH}/modules/mod_auth_digest.so"
    #LoadModule authn_alias_module "{APACHEPATH}/modules/mod_authn_alias.so"
    #LoadModule authn_anon_module "{APACHEPATH}/modules/mod_authn_anon.so"
    #LoadModule authn_dbd_module "{APACHEPATH}/modules/mod_authn_dbd.so"
    #LoadModule authn_dbm_module "{APACHEPATH}/modules/mod_authn_dbm.so"
    LoadModule authn_default_module "{APACHEPATH}/modules/mod_authn_default.so"
    LoadModule authn_file_module "{APACHEPATH}/modules/mod_authn_file.so"
    #LoadModule authnz_ldap_module "{APACHEPATH}/modules/mod_authnz_ldap.so"
    #LoadModule authz_dbm_module "{APACHEPATH}/modules/mod_authz_dbm.so"
    LoadModule authz_default_module "{APACHEPATH}/modules/mod_authz_default.so"
    LoadModule authz_groupfile_module "{APACHEPATH}/modules/mod_authz_groupfile.so"
    LoadModule authz_host_module "{APACHEPATH}/modules/mod_authz_host.so"
    #LoadModule authz_owner_module "{APACHEPATH}/modules/mod_authz_owner.so"
    LoadModule authz_user_module "{APACHEPATH}/modules/mod_authz_user.so"
    LoadModule autoindex_module "{APACHEPATH}/modules/mod_autoindex.so"
    LoadModule cache_module "{APACHEPATH}/modules/mod_cache.so"
    #LoadModule cern_meta_module "{APACHEPATH}/modules/mod_cern_meta.so"
    LoadModule cgi_module "{APACHEPATH}/modules/mod_cgi.so"
    #LoadModule charset_lite_module "{APACHEPATH}/modules/mod_charset_lite.so"
    #LoadModule dav_module "{APACHEPATH}/modules/mod_dav.so"
    #LoadModule dav_fs_module "{APACHEPATH}/modules/mod_dav_fs.so"
    LoadModule dav_lock_module "{APACHEPATH}/modules/mod_dav_lock.so"
    #LoadModule dbd_module "{APACHEPATH}/modules/mod_dbd.so"
    #LoadModule deflate_module "{APACHEPATH}/modules/mod_deflate.so"
    LoadModule dir_module "{APACHEPATH}/modules/mod_dir.so"
    LoadModule disk_cache_module "{APACHEPATH}/modules/mod_disk_cache.so"
    #LoadModule dumpio_module "{APACHEPATH}/modules/mod_dumpio.so"
    LoadModule env_module "{APACHEPATH}/modules/mod_env.so"
    #LoadModule expires_module "{APACHEPATH}/modules/mod_expires.so"
    #LoadModule ext_filter_module "{APACHEPATH}/modules/mod_ext_filter.so"
    LoadModule file_cache_module "{APACHEPATH}/modules/mod_file_cache.so"
    #LoadModule filter_module "{APACHEPATH}/modules/mod_filter.so"
    LoadModule headers_module "{APACHEPATH}/modules/mod_headers.so"
    #LoadModule ident_module "{APACHEPATH}/modules/mod_ident.so"
    #LoadModule imagemap_module "{APACHEPATH}/modules/mod_imagemap.so"
    LoadModule include_module "{APACHEPATH}/modules/mod_include.so"
    #LoadModule info_module "{APACHEPATH}/modules/mod_info.so"
    LoadModule isapi_module "{APACHEPATH}/modules/mod_isapi.so"
    #LoadModule ldap_module "{APACHEPATH}/modules/mod_ldap.so"
    #LoadModule logio_module "{APACHEPATH}/modules/mod_logio.so"
    LoadModule log_config_module "{APACHEPATH}/modules/mod_log_config.so"
    #LoadModule log_forensic_module "{APACHEPATH}/modules/mod_log_forensic.so"
    #LoadModule mem_cache_module "{APACHEPATH}/modules/mod_mem_cache.so"
    LoadModule mime_module "{APACHEPATH}/modules/mod_mime.so"
    #LoadModule mime_magic_module "{APACHEPATH}/modules/mod_mime_magic.so"
    LoadModule negotiation_module "{APACHEPATH}/modules/mod_negotiation.so"
    #LoadModule proxy_module "{APACHEPATH}/modules/mod_proxy.so"
    #LoadModule proxy_ajp_module "{APACHEPATH}/modules/mod_proxy_ajp.so"
    #LoadModule proxy_balancer_module "{APACHEPATH}/modules/mod_proxy_balancer.so"
    #LoadModule proxy_connect_module "{APACHEPATH}/modules/mod_proxy_connect.so"
    #LoadModule proxy_ftp_module "{APACHEPATH}/modules/mod_proxy_ftp.so"
    #LoadModule proxy_http_module "{APACHEPATH}/modules/mod_proxy_http.so"
    LoadModule rewrite_module "{APACHEPATH}/modules/mod_rewrite.so"
    LoadModule setenvif_module "{APACHEPATH}/modules/mod_setenvif.so"
    #LoadModule speling_module "{APACHEPATH}/modules/mod_speling.so"
    #LoadModule ssl_module "{APACHEPATH}/modules/mod_ssl.so"
    #LoadModule status_module "{APACHEPATH}/modules/mod_status.so"
    #LoadModule substitute_module "{APACHEPATH}/modules/mod_substitute.so"
    #LoadModule unique_id_module "{APACHEPATH}/modules/mod_unique_id.so"
    #LoadModule userdir_module "{APACHEPATH}/modules/mod_userdir.so"
    #LoadModule usertrack_module "{APACHEPATH}/modules/mod_usertrack.so"
    #LoadModule version_module "{APACHEPATH}/modules/mod_version.so"
    #LoadModule vhost_alias_module "{APACHEPATH}/modules/mod_vhost_alias.so"
     
    LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
     
    # ****************************************************************************************************************
    # OTHERS CONFIG
     
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    User daemon
    Group daemon
    </IfModule>
    </IfModule>
     
    ServerAdmin contact@exemple.com
    ServerName *
     
    <IfModule dir_module>
        DirectoryIndex index.html index.php index.php5 index.php6
    </IfModule>
     
    ErrorLog "{APACHEPATH}/logs/error.log"
     
    <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>      
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>
     
        CustomLog "{APACHEPATH}/logs/access.log" common
    </IfModule>
     
    <IfModule alias_module>
    </IfModule>
     
     
    DefaultType text/plain
     
    <IfModule mime_module> 
        TypesConfig "{APACHEPATH}/conf/mime.types"    
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
    	AddType application/x-httpd-php .php
    	AddType application/x-httpd-php .php5
    	AddType application/x-httpd-php-source .phps
    </IfModule>
     
     
    #
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://test/subscription_info.html
    #
     
     
    <IfModule ssl_module>
    	SSLRandomSeed startup builtin
    	SSLRandomSeed connect builtin
    </IfModule>
     
    # ****************************************************************************************************************
    # EXTRA CONFIG
    # EDIT FILE WITH conf/extra/*source.conf
     
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
     
    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf
     
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
     
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
     
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
     
    # Language settings
    #Include conf/extra/httpd-languages.conf
     
    # Multi-language error messages
    #Include conf/extra/httpd-multilang-errordoc.conf
     
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
     
     
    # ****************************************************************************************************************
    # VIRTUAL HOST
     
    NameVirtualHost "*:8080"
    <VirtualHost *:8080>
    #UWAMP Generate Virtual Host
    	DocumentRoot "{DOCUMENTPATH}/"
    	Alias "/mysql/" "{PHPAPPS}/phpmyadmin/"
    	Alias "/mysql" "{PHPAPPS}/phpmyadmin/"
    	Alias "/uwamp/" "{PHPAPPS}/uwamp/"
    	Alias "/uwamp" "{PHPAPPS}/uwamp/"
    	<Directory "{PHPAPPS}/phpmyadmin/">
    		AllowOverride All
    		Options FollowSymLinks Includes Indexes 
    		Order deny,allow
    		Deny from all
    		Allow from 127.0.0.1 localhost
    		Allow from 126.45
    	</Directory>
    	<Directory "{PHPAPPS}/uwamp/">
    		AllowOverride All
    		Options FollowSymLinks Includes Indexes 
    		Order deny,allow
    		Deny from all
    		Allow from 127.0.0.1 localhost
    		Allow from 126.45
    	</Directory>
    	<Directory "{DOCUMENTPATH}/">
    		AllowOverride All
    		Options FollowSymLinks Indexes 
    		{ONLINE_MODE}
    	</Directory>
    </VirtualHost>
    <VirtualHost *:8080>
    #UWAMP Generate Virtual Host
    	DocumentRoot "{DOCUMENTPATH}/"
    	ServerName "www.example.com"
    </VirtualHost>
    J'ai modifier le port (80 -> 8080) car il n’était pas libre.

    Si quelqu'un voit un indice ou quelque chose pour m'aider ça serait cool, parce que je suis un peu perdu...

    Merci.

  2. #2
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 659
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 659
    Billets dans le blog
    1
    Par défaut
    Il faut que tu aies une adresse IP fixe sur le réseau et que tu fasses un listen sur cette adresse IP ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  3. #3
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2013
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Finance

    Informations forums :
    Inscription : Février 2013
    Messages : 15
    Par défaut
    J'ai une adresse ip fixe.

    Mais j'ai du mal a voir ou rajouter le listen ?

    J'ai essayé de mettre au tout début de la partie 'VIRTUAL HOST' mais ça n'a rien changé.

  4. #4
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2013
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Finance

    Informations forums :
    Inscription : Février 2013
    Messages : 15
    Par défaut
    Le problème est réglé, il fallait remplacer par Plus un problème de parfeu.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Apache/WebDAV] Configurer Apache pour SVN sous Mandriva
    Par Xavier3131 dans le forum Subversion
    Réponses: 20
    Dernier message: 05/03/2008, 13h40
  2. [EasyPHP] Configurer Apache pour un reseau local
    Par goomie dans le forum Apache
    Réponses: 8
    Dernier message: 21/10/2007, 11h33
  3. Configuration Apache en Intranet
    Par Siguillaume dans le forum Réseau
    Réponses: 12
    Dernier message: 04/10/2007, 13h35
  4. configuration apache pour servlet
    Par mikees dans le forum Servlets/JSP
    Réponses: 4
    Dernier message: 08/05/2007, 14h42
  5. [EasyPHP] Configurer Apache pour des accées distants
    Par Fathallah dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 3
    Dernier message: 09/03/2006, 19h06

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo