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 :
J'ai modifier le port (80 -> 8080) car il n’était pas libre.
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>
Si quelqu'un voit un indice ou quelque chose pour m'aider ça serait cool, parce que je suis un peu perdu...
Merci.
Partager