· 8 years ago · Jan 26, 2018, 09:18 PM
1<VirtualHost *:80>
2 # The ServerName directive sets the request scheme, hostname and port that
3 # the server uses to identify itself. This is used when creating
4 # redirection URLs. In the context of virtual hosts, the ServerName
5 # specifies what hostname must appear in the request's Host: header to
6 # match this virtual host. For the default virtual host (this file) this
7 # value is not decisive as it is used as a last resort host regardless.
8 # However, you must set it for any further virtual host explicitly.
9 #ServerName www.example.com
10
11 ServerAdmin myemail@email.com
12 ServerName mydomain.com
13 ServerAlias www.mydomain.com
14 DocumentRoot /var/www/html/mysite
15
16 # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
17 # error, crit, alert, emerg.
18 # It is also possible to configure the loglevel for particular
19 # modules, e.g.
20 #LogLevel info ssl:warn
21
22 ErrorLog ${APACHE_LOG_DIR}/mysite-error.log
23 CustomLog ${APACHE_LOG_DIR}/mysite-access.log combined
24
25 # For most configuration files from conf-available/, which are
26 # enabled or disabled at a global level, it is possible to
27 # include a line for only one particular virtual host. For example the
28 # following line enables the CGI configuration for this host only
29 # after it has been globally disabled with "a2disconf".
30 #Include conf-available/serve-cgi-bin.conf
31
32</VirtualHost>
33
34<?php
35/**
36 * The base configuration for WordPress
37 *
38 * The wp-config.php creation script uses this file during the
39 * installation. You don't have to use the web site, you can
40 * copy this file to "wp-config.php" and fill in the values.
41 *
42 * This file contains the following configurations:
43 *
44 * * MySQL settings
45 * * Secret keys
46 * * Database table prefix
47 * * ABSPATH
48 *
49 * @link https://codex.wordpress.org/Editing_wp-config.php
50 *
51 * @package WordPress
52 */
53
54// ** MySQL settings - You can get this info from your web host ** //
55/** The name of the database for WordPress */
56define('DB_NAME', 'mydbsite');
57
58/** MySQL database username */
59define('DB_USER', 'sadadsadsadads');
60
61/** MySQL database password */
62define('DB_PASSWORD', 'asdadasdadasdassdadas');
63
64/** MySQL hostname */
65define('DB_HOST', 'localhost');
66
67/** Database Charset to use in creating database tables. */
68define('DB_CHARSET', 'utf8mb4');
69
70/** The Database Collate type. Don't change this if in doubt. */
71define('DB_COLLATE', '');
72
73/**#@+
74 * Authentication Unique Keys and Salts.
75 *
76 * Change these to different unique phrases!
77 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
78 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
79 *
80 * @since 2.6.0
81
82 define('AUTH_KEY', ',<sssssssssssssssssssssssssssssssssssss');
83define('SECURE_AUTH_KEY', 'sssssssssssssssssssssssssssssssssssss');
84define('LOGGED_IN_KEY', 'Jssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss ');
85define('NONCE_KEY', ':sssssssssssssssssssssssssssssssssssssssssssssssssssssssss');
86define('AUTH_SALT', 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssss');
87define('SECURE_AUTH_SALT', 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssss');
88define('LOGGED_IN_SALT', 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssss');
89define('NONCE_SALT', 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssss');
90
91/**#@-*/
92
93/**
94 * WordPress Database Table prefix.
95 *
96 * You can have multiple installations in one database if you give each
97 * a unique prefix. Only numbers, letters, and underscores please!
98 */
99$table_prefix = 'wp_';
100
101/**
102 * For developers: WordPress debugging mode.
103 *
104 * Change this to true to enable the display of notices during development.
105
106
107
108define('WP_DEBUG', false);
109
110/* That's all, stop editing! Happy blogging. */
111
112/** Absolute path to the WordPress directory. */
113if ( !defined('ABSPATH') )
114 define('ABSPATH', dirname(__FILE__) . '/');
115
116/** Sets up WordPress vars and included files. */
117require_once(ABSPATH . 'wp-settings.php');
118
119# BEGIN WordPress
120<IfModule mod_rewrite.c>
121RewriteEngine On
122RewriteBase /mysite/
123RewriteRule ^index.php$ - [L]
124RewriteCond %{REQUEST_FILENAME} !-f
125RewriteCond %{REQUEST_FILENAME} !-d
126RewriteRule . /mysite/index.php [L]
127</IfModule>
128
129# END WordPress